From: Domenico De F. <dom...@gm...> - 2011-04-28 22:28:05
|
Hi all, I'm having an issue displaying special characters on an internationalization process. I'm not sure if I need to do something at Cocoa level or if there is something missing in XMLVM. I have some plain internationalization files containing the text for my application in different languages, following the UTF8 standard. >From my java application, I load these files using InputStream and then convert the read data to strings. The problem is that on the iPhone simulator this text is not showed correctly as I think the ASCII encoding is used instead of UTF8. I tried to have a look at the java_lang_InputStream.m file but all I found is a call to xmlvmSubclassResponsibility which I really don't know what is (searching the whole xmlvm project I couldn't match any implementation of this function). I also checked the java_lang_String.m file to see how a string is created from an array of bytes. Here there seems to be no problems too as the bytes are appended one by one as char; still I have the doubt wether I need an NSUTF8String or not to obtain the correct visualization of the string. Do you have any ideas? Thanks -- Domenico De Fano |