• 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: How to convert from decomposed to precomposed UTF-8 on iOS
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to convert from decomposed to precomposed UTF-8 on iOS


  • Subject: Re: How to convert from decomposed to precomposed UTF-8 on iOS
  • From: Andreas Falkenhahn <email@hidden>
  • Date: Mon, 28 Nov 2016 17:08:18 +0100

On 28.11.2016 at 16:54 David Duncan wrote:

>> On Nov 28, 2016, at 10:36 AM, Andreas Falkenhahn <email@hidden> wrote:

>> (I'm sorry, but this mail isn't really about Cocoa but I've checked all
>> the lists hosted on lists.apple.com and I haven't found a list which
>> is suitable so I'll try here.)

>> I need to convert a char array that contains decomposed UTF-8 characters
>> (as used by HFS) into a precomposed UTF-8 char array. How can I do that on
>> iOS please?

>> On macOS I can simply use CreateTextEncoding(), TECCreateConverter(),
>> and TECConvertText() but apparently these APIs aren't available on iOS.

> NSString should have what you need – it has methods to obtain a
> corresponding NSString in forms C/D/KC/KD. Look for
> decomposed/precomposed properties.

Thanks, NSString.precomposedStringWithCanonicalMapping did the trick.

--
Best regards,
 Andreas Falkenhahn                            mailto:email@hidden


_______________________________________________

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: 
 >How to convert from decomposed to precomposed UTF-8 on iOS (From: Andreas Falkenhahn <email@hidden>)
 >Re: How to convert from decomposed to precomposed UTF-8 on iOS (From: David Duncan <email@hidden>)

  • Prev by Date: Re: How to convert from decomposed to precomposed UTF-8 on iOS
  • Next by Date: Re: Vertically Centered Colon
  • Previous by thread: Re: How to convert from decomposed to precomposed UTF-8 on iOS
  • Next by thread: Preserving knowledge of renamed/moved directory?
  • Index(es):
    • Date
    • Thread