Re: Re: UTF8 to MacRoman using TECConvertText
Re: Re: UTF8 to MacRoman using TECConvertText
- Subject: Re: Re: UTF8 to MacRoman using TECConvertText
- From: "David Brennan" <email@hidden>
- Date: Mon, 15 Jan 2007 18:12:41 +0000
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.
Thanks,
Dave.
On 15/01/07, Douglas Davidson <email@hidden> wrote:
On Jan 15, 2007, at 9:40 AM, David Brennan wrote:
> I am trying to convert UTF8 to MacRoman. I am using [NSString
> UTF8String], to get a UTF8 encoding of the string, then I am trying to
> convert the string to MacRoman using TECConvertText, but it's not
> working for me.
If you have an NSString to start with, why not use
cStringUsingEncoding: or dataUsingEncoding: with
NSMacOSRomanStringEncoding to get MacRoman directly?
Douglas Davidson
_______________________________________________
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