Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to convert a NSString to UTF-8 format string in iphone sdk?

I have localization in my app(english,spanish,italian).The client sent me strings files but some characters are strange how do i correct them? i have figured out that the client used Mac OS Roman encoding how do i convert this to utf-8. for example Nürnberg is converted into N√ºrnberg when client send me now i want to reconvert it.

like image 413
Rahul Vyas Avatar asked Dec 07 '09 14:12

Rahul Vyas


1 Answers

simple method

   [yourNSStringObject UTF8String];
like image 106
Vijay-Apple-Dev.blogspot.com Avatar answered Nov 07 '22 21:11

Vijay-Apple-Dev.blogspot.com