Does anyone know How to convert ISO-8859-1 encoded string into UTF-8 string or into NSString in Objective C ?
thanks.
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.
Say you have your ISO-8859-1 encoded string in a varaible
isoStringof typeconst char*, then you can create an NSString instance like this:Note: Latin-1 and ISO-8859-1 encoding are the same.
With the following code, you can convert it to a UTF-8 encoded C string if needed: