• 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: [OFF] unicode characters
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [OFF] unicode characters


  • Subject: Re: [OFF] unicode characters
  • From: Ricky Sharp <email@hidden>
  • Date: Wed, 9 Apr 2008 15:10:56 -0500


On Apr 9, 2008, at 1:25 PM, Douglas Davidson wrote:


On Apr 9, 2008, at 11:14 AM, Alexander Cohen wrote:

Sorry for the off-topic post but this is the best place to get info ( lots of smart people ).

I have a string that is composed unicode characters. I want to be able to transform that string into all ascii characters by transforming all non-ascii characters into their ascii equivalent.

ex:

ü = u
é = e

Anyone know of a way to do that or do i need a lookup table with all characters and their equivalents?

Take a look at CFStringTransform(). The details will depend on exactly what you want to do.


And of course, this process will only work on a subset of all the Latin-based languages.

Are you using this to build "sort keys"? If so, you should probably just use the various compare APIs available. Those would also ensure that the rules honor what the user has set up in their International prefs.

___________________________________________________________
Ricky A. Sharp         mailto:email@hidden
Instant Interactive(tm)   http://www.instantinteractive.com

_______________________________________________

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


  • Follow-Ups:
    • Re: [OFF] unicode characters
      • From: Douglas Davidson <email@hidden>
References: 
 >[OFF] unicode characters (From: Alexander Cohen <email@hidden>)
 >Re: [OFF] unicode characters (From: Douglas Davidson <email@hidden>)

  • Prev by Date: Re: More NSUndoManager woes
  • Next by Date: Re: [OFF] unicode characters
  • Previous by thread: Re: [OFF] unicode characters
  • Next by thread: Re: [OFF] unicode characters
  • Index(es):
    • Date
    • Thread