开发者

how to read an hebrew text from a file

开发者 https://www.devze.com 2023-03-16 19:00 出处:网络
I want to read a text of hebrew from a file to nsstring object,I know the code line开发者_如何学运维:

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

精彩评论

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