views:

36

answers:

1

I'm using NSXMLParser in iphone app that I'm working on. Later I'm displaying the text in a view. All is well when I'm using english language in my XML. But my XML is in Herbrew language. I'm not able to read the text properly and display it.Please advice me what change do I've to make in XML.

A: 

if the XML file is in UTF-8 and you are decoding it using NSUTF8Encoding you should have no problems. when displaying the strings in UI, remember to set the correct alignment, or the right-to-left will not look correct.

Reflog
How can I find out whether my XML file is UTF-8 encoding or not?
Satyam svv
Well, two ways - either u have BOM characters at the beginning of the file (0xFE and 0xFF), or if it's a file without BOM, you have to just open it in some text editor/viewer that allows you to switch encodings and see which one it is.
Reflog