Author Topic: Apple UTF-16 -> Unicode  (Read 2866 times)

Offline OS923

  • Platinum Member
  • *****
  • Posts: 888
Apple UTF-16 -> Unicode
« on: March 18, 2019, 04:05:06 AM »
From Wikipedia:

Quote
File and folder names in HFS Plus are also character encoded in UTF-16 and normalized to a form very nearly the same as Unicode Normalization Form D (NFD).

How can I convert this to Unicode?

Offline OS923

  • Platinum Member
  • *****
  • Posts: 888
Re: Apple UTF-16 -> Unicode
« Reply #1 on: March 26, 2019, 06:10:07 AM »
I'll ask it this way: does someone have a source code example that draws a Unicode filename on screen?

Offline OS923

  • Platinum Member
  • *****
  • Posts: 888
Re: Apple UTF-16 -> Unicode
« Reply #2 on: April 12, 2019, 08:35:04 AM »
Text encoding base = kTextEncodingUnicodeV2_0
Text encoding variant = kUnicodeCanonicalDecompVariant
Text encoding format = kUnicode16BitFormat