• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Re: UTF8 to MacRoman using TECConvertText
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: UTF8 to MacRoman using TECConvertText
      • From: Andreas Mayer <email@hidden>
    • Re: UTF8 to MacRoman using TECConvertText
      • From: "Sean McBride" <email@hidden>
    • Re: UTF8 to MacRoman using TECConvertText
      • From: Douglas Davidson <email@hidden>
References: 
 >UTF8 to MacRoman using TECConvertText (From: "David Brennan" <email@hidden>)
 >Re: UTF8 to MacRoman using TECConvertText (From: Douglas Davidson <email@hidden>)

  • Prev by Date: Re: Transparently en-/decrypt package resources
  • Next by Date: Re: UTF8 to MacRoman using TECConvertText
  • Previous by thread: Re: UTF8 to MacRoman using TECConvertText
  • Next by thread: Re: UTF8 to MacRoman using TECConvertText
  • Index(es):
    • Date
    • Thread