I have got a text file from the server and it contains Chinese characters. How to read these characters?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
你好MD. 你会说中文吗?
You may want to take a look at
CFStringConvertEncodingToNSStringEncodingandkCFStringEncodingBig5_E.If you get it into the standard system encoding for NSString (I don’t think you’ll need to ever refer to UTF specifically) then anything that uses an NSString should work.
True that you might need to change the font to a different one, but the standard unicode system font should have chinese glyphs. They might be simiplified vs traditional though.