Re: UTF8 to MacRoman using TECConvertText
Re: UTF8 to MacRoman using TECConvertText
- Subject: Re: UTF8 to MacRoman using TECConvertText
- From: "Sean McBride" <email@hidden>
- Date: Mon, 15 Jan 2007 13:18:35 -0500
- Organization: Rogue Research
On 2007-01-15 18:12, David Brennan said:
>I have tried using NSMacOSRomanStringEncoding, but with some string I
>find it returns nil, but if I use NSUTF8StringEncoding on the same
>string. I get the string with the wrong encoding. The euro symbol "€"
>becomes something else.
>
>I have no idea what I'm doing wrong with NSMacOSRomanStringEncoding.
Are you sure the strings you are trying to convert can be represented in
MacRoman? MacRoman has only basic ASCII and 128 other chars, see:
<http://en.wikipedia.org/wiki/Macroman>
If your string has characters that aren't in that table, then getting
'nil' is expected.
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden