Monday, November 14, 2011

PHP/XML/Unicode: How do I display Chinese unicode chars in a php page?

I have an xml file with the unicode codes for chinese characters. Both the HTML and XML file are set to "utf-8." If I write the unicode line directly into the HTML file, it print fine but when I use PHP to echo out the XML content which is the same exact string I get gibberish. Ideas? Thanks

No comments:

Post a Comment