Re: Convert Charatcers
Re: Convert Charatcers
- Subject: Re: Convert Charatcers
- From: Allan Odgaard <email@hidden>
- Date: Tue, 9 Mar 2004 18:36:47 +0100
On 9. Mar 2004, at 18:09, Alastair Houghton wrote:
[...] inadvertently use the Windows (ANSI) character set, which could
cause confusion if you aren't expecting it.
Just to clarify, Windows uses ISO-8859-1 (Latin1) except for the
character range 128-159, which is instead from CP1252, and these
characters are anyway control characters in Latin1, so you generally
only need to map the characters in this range to the corresponding
unicode characters, which should be harmless to do with true Latin1
text, since the range should be empty.
A tougher problem is to recognize MacRoman, but luckily you rarely
(ever) find this on the net :)
But CoreFoundation (and NSString for that matter) has the functions to
do the actual conversions for you...
_______________________________________________
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.