jasonmc/forked-daapd — Issue #81: character decoding problem in iTunes Library.xml ("combining diaeresis")
Author: ctr49
Created: 2012-01-01 20:19:54+00:00
State: open

I've got some serious problems with non-ascii characters in filenames contained in iTunesLibrary.xml

Take the following example:

Track ID123
NameDie Klügsten Männer Der Welt
ArtistDie Ärzte
AlbumGeräusch - CD2
[...]
Locationfile://localhost/Volumes/gemeinsam/Musik/iTunes/iTunes%20Music/Die%20A%CC%88rzte/Gera%CC%88usch%20-%20CD2/07%20Die%20Klu%CC%88gsten%20Ma%CC%88nner%20Der%20Welt.m4a

Special characters like ä,ö,ü are encoded using "combining diaeresis" (%CC%88) and forked-daapd doesn't seem to honor this, so I don't have those in my playlist but just when it picks up the file in the filesystem.

Whenever %CC%88 is found, the previous character should be converted
a -> ä
o -> ö
u -> ü
A -> Ä
O -> Ö
U -> Ü

and "%C3%9F" shall become "ß" (without any attention to the previous character).

Thanks!