osx - Mac vs PC Text Encoding -


i've noticed different itunes when export music library.

i have song é (that is, small latin e acute accent) , when export library in windows, gets encoded @ %c3%a9, when export library mac, normal 'e' printed, followed %cc%81.

example:

song name: héllo world windows export: h%c3%a9llo world mac export: he%cc%81llo world 

this important me program i'm making where, in windows version, decode encoding, doesn't work if file comes mac.

so why there difference? there place can see differences , see mac encodings are? there maybe object-c routine decode these strings?

thanks.

c3a9 utf-8 encoding character é.
cc81 utf-8 encoding combining acute accent character (u+0301).

an "e" followed combining acute accent combines character "é".
2 different forms of unicode normalization.

why 1 itunes prefers 1 on other don't know, there's no inherent reason so.


Comments

Popular posts from this blog

delphi - How to convert bitmaps to video? -

jasper reports - Fixed header in Excel using JasperReports -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -