Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Getting right character-set from MySQL
- Trpi Ivan
September 11, 2005, 2:19 pm
rate this thread
loaded some data
in the same character-set. When I read table using EMS MySQL Managet 3 Lite,
I get croatian characters displayed correctly, but when I show this data in
php page, I get '?' instead of croatian characters.
I put <meta http-equiv="Content-Type"
content="text/html;charset=windows-1250"> at the HEAD section of the page,
and all text is displayed correcty, except those fetched from MySQL
Can anybody help?
Re: Getting right character-set from MySQL
Since you are using PHP you have control over what headers are sent, so you
can send the real header instead of an unreliable <meta> tag.
Even if this doesn't help it at least eliminates one of the likely
possibilities, that the browser is using the wrong encoding.
Andy Hassall :: email@example.com :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool