• 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: UTF8 to MacRoman using TECConvertText
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >UTF8 to MacRoman using TECConvertText (From: "David Brennan" <email@hidden>)
 >Re: UTF8 to MacRoman using TECConvertText (From: Douglas Davidson <email@hidden>)
 >Re: Re: UTF8 to MacRoman using TECConvertText (From: "David Brennan" <email@hidden>)

  • Prev by Date: Re: UTF8 to MacRoman using TECConvertText
  • 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