Monday, May 24, 2010

In PHP and MySQL, how do I make Unicode characters work correctly?

I get some data from text files. A string comes like this:





"Garmin nüvi 350..."





Then I insert it into my table (which has already VARCHAR fields as uft8_general_ci) and this is what I get after:





"Garmin nüvi 350..."





Why doesn't it work correctly? What should I do?

In PHP and MySQL, how do I make Unicode characters work correctly?
%26lt;?php header("Content-Type: charset=UTF-8"); ?%26gt;





are you using the UTF-8 type?

greeting cards

No comments:

Post a Comment