• 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: UTF-8 to UTF-8 conversion
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: UTF-8 to UTF-8 conversion


  • Subject: Re: UTF-8 to UTF-8 conversion
  • From: Frederick Cheung <email@hidden>
  • Date: Thu, 28 Apr 2005 15:19:54 +0100


On 28 Apr 2005, at 11:01, Nicolas Zinovieff wrote:

Hi gang,

this is not purely cocoa related, but I'm having a hard time with some UTF-8 strings.
What I get is a string where all the marks are diacritic ones (e + ` = รจ), and when I hand them to the compositor for an insertion in a view, the styles get mixed up.
It looks like the diacritic "cancels" somehow italics and underlined, etc...


Is there any mathematical or programmatical way to calculate the corresponding character in utf-8 (here : 0x65 0xCC 0x80 -> 0xC3 0xA8) to "simplify" the string?
I know I could build the whole table, but that's roughly 50 chars times 16 diacritic marks I have to use, which is ~ 10^27 combinations.


How about the CFStringNormalize function ?

Fred

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: UTF-8 to UTF-8 conversion
      • From: Nicolas Zinovieff <email@hidden>
References: 
 >UTF-8 to UTF-8 conversion (From: Nicolas Zinovieff <email@hidden>)

  • Prev by Date: Re: [OT] WWDC hotels for car-less people?
  • Next by Date: Re: Beveled outline around a view(BevelBox): How to?
  • Previous by thread: UTF-8 to UTF-8 conversion
  • Next by thread: Re: UTF-8 to UTF-8 conversion
  • Index(es):
    • Date
    • Thread