Thursday, June 14, 2012

initWithContentsOfURL and encoding

In the pictures below you could see the Chinese Characters were not displayed properly, it turned out I had to specify encoding NSUTF8StringEncoding when calling the method initWithContentsOfURL.

And the default encoding if no encoding specified? ISO-8859-1 encoding...........

No comments:

Post a Comment