Re: Converting ASCII to UTF-8?
Re: Converting ASCII to UTF-8?
- Subject: Re: Converting ASCII to UTF-8?
- From: Shawn Erickson <email@hidden>
- Date: Mon, 29 Mar 2004 16:57:20 -0800
On Mar 29, 2004, at 1:57 PM, Huyler, Christopher M wrote:
If I read an ASCII string in from a file and store it in an NSString,
how could I convert it to UTF-8 so it will display properly?
This question doesn't make sense to me... UTF-8 is designed to be a
super set of ASCII and regardless UTF-xx is only an encoding, it
doesn't affect display. You just need to read things in correctly using
the correct encoding (an encoding matching the source file).
NSString and things that accept those will know what to do to get
things displayed correctly (you shouldn't generally ever need to care
what the internal encoding of NSString is).
So I guess what isn't displaying correctly?
-Shawn
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.