MySQL -> PHP Encoding / Decoding problem

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Adam_m

    MySQL -> PHP Encoding / Decoding problem

    If I have this in MySQL 5.x

    08/2006 Â&#194 ;– Created a simulation program with
    Java to simulate the behavior of small networks

    How can I decode the UTF8 latin data to render correctly in PHP ?

    Better still -- how can I fix the data in MySQL
  • Jerry Stuckle

    #2
    Re: MySQL -> PHP Encoding / Decoding problem

    Adam_m wrote:
    If I have this in MySQL 5.x
    >
    08/2006 Â&#194 ;– Created a simulation program with
    Java to simulate the behavior of small networks
    >
    How can I decode the UTF8 latin data to render correctly in PHP ?
    >
    Better still -- how can I fix the data in MySQL
    >
    What's wrong with the data in MySQL? If it's wrong, it's because it was
    inserted incorrecly.

    As for rendering the data, PHP doesn't care. It's in the charset your
    server indicating the page uses.

    Try alt.apache.conf iguration (if this is Apache).

    Alternatively, use the header() call to set the charset for a specific page.

    --
    =============== ===
    Remove the "x" from my email address
    Jerry Stuckle
    JDS Computer Training Corp.
    jstucklex@attgl obal.net
    =============== ===

    Comment

    Working...