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

Re: MacRoman -> UTF8


  • Subject: Re: MacRoman -> UTF8
  • From: "Stephen J. Butler" <email@hidden>
  • Date: Sat, 21 Mar 2009 18:17:47 -0500

On Sat, Mar 21, 2009 at 5:50 PM, Ben Lachman <email@hidden> wrote:
> Thats what I thought.  However, say I start by reading "bén" as I noted
> above, then I call printf("%s", [myStringReadFromMacRoman UTF8String]) and
> it prints "bÈn".  However if I call printf("%s", [myStringReadFromMacRoman
> cStringUsingEncoding:NSMacOSRomanStringEncoding]) is prints out correctly.
>  Now I'm thoroughly confused and am not sure what's happening.  Any more
> thoughts?

What does printf( "LANG = %s\n", genenv( "LANG" ) ); say? For example,
on 10.5.6 with Terminal set to UTF-8 I get:

LANG = en_US.UTF-8

If I change it to MacRoman or Latin-1 then I get just

LANG = en_US

If you need to change your terminal settings, it's "Preferences... "
-> Settings -> (choose your default) -> Advanced -> Character
encoding.
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please 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: 
 >MacRoman -> UTF8 (From: Ben Lachman <email@hidden>)
 >Re: MacRoman -> UTF8 (From: Clark Cox <email@hidden>)
 >Re: MacRoman -> UTF8 (From: Ben Lachman <email@hidden>)

  • Prev by Date: Re: MacRoman -> UTF8
  • Next by Date: NSString and Leaks Instrument, False Positives?
  • Previous by thread: Re: MacRoman -> UTF8
  • Next by thread: Re: MacRoman -> UTF8
  • Index(es):
    • Date
    • Thread