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

Re: Convert Charatcers


  • Subject: Re: Convert Charatcers
  • From: Allan Odgaard <email@hidden>
  • Date: Tue, 9 Mar 2004 18:36:47 +0100

On 9. Mar 2004, at 18:09, Alastair Houghton wrote:

[...] inadvertently use the Windows (ANSI) character set, which could cause confusion if you aren't expecting it.

Just to clarify, Windows uses ISO-8859-1 (Latin1) except for the character range 128-159, which is instead from CP1252, and these characters are anyway control characters in Latin1, so you generally only need to map the characters in this range to the corresponding unicode characters, which should be harmless to do with true Latin1 text, since the range should be empty.

A tougher problem is to recognize MacRoman, but luckily you rarely (ever) find this on the net :)

But CoreFoundation (and NSString for that matter) has the functions to do the actual conversions for you...
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >Convert Charatcers (From: Lorenzo <email@hidden>)
 >Re: Convert Charatcers (From: Alastair Houghton <email@hidden>)

  • Prev by Date: Re: Convert Charatcers
  • Next by Date: Re: Convert Charatcers
  • Previous by thread: Re: Convert Charatcers
  • Next by thread: Re: Convert Charatcers
  • Index(es):
    • Date
    • Thread