Re: How to convert from decomposed to precomposed UTF-8 on iOS
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: David Duncan <email@hidden>
- Date: Mon, 28 Nov 2016 10:54:36 -0500
> 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.
>
> Any ideas?
>
> --
> 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
--
David Duncan
_______________________________________________
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