开发者

how to read an hebrew text from a file

I want to read a text of hebrew from a file to nsstring object,I know the code line开发者_如何学运维:

NSString *text=[NSString stringWithContentsOfFile:path encoding:encoding error:NULL];

i dont know what kind of file it have to be:rtf,xml or something else and what kind of encoding I have to use for hebrew


UTF-8 is the proper encoding you want.

http://www.alanwood.net/unicode/hebrew.html

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜