Getting right character-set from MySQL
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

Getting right character-set from MySQL

From: Trpčić Ivan <ivan.trpcic@kc.t-com.hr>
Date: Sun Sep 11 2005 - 16:19:32 CEST

I have created MySQL database on XP SP2 machine in cp1250 character-set, and
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
database.
Can anybody help?
Received on Mon Oct 24 02:09:56 2005