Page 1 of 1

UTF 8 not working?

Posted: Tue Aug 25, 2009 10:19 pm
by archeons
I have a database in chinese character when I tried to show it as an xml it shows "????" instead of the chinese character, what must I do? I tried to encode it but so far no luck.
The other database when storing to mysql at phpmyadmin will show funny character but i could retrieve it as chinese character however this time it stores in chinese character.

Re: UTF 8 not working?

Posted: Wed Aug 26, 2009 4:22 pm
by Darhazer
What is the charset of the database? charset of the connection? what is your code to display the XML? do you pass proper content-type header?

Re: UTF 8 not working?

Posted: Thu Sep 24, 2009 9:30 pm
by archeons
I found out what was the problem, because the way they save it is using UTF-8 the way to pull it out is using PHP function "pack".