libsidplayfp / sidplayfp

Console SID/MUS player
GNU General Public License v2.0
37 stars 7 forks source link

stilview: handle character conversion #16

Closed drfiemost closed 1 year ago

drfiemost commented 1 year ago

i.e.

$ stilview  -e=/MUSICIANS/V/Vaca_Ramiro/Turrican.sid -t=3
NAME: The Deep
AUTHOR: Chris H�lsbeck
COMMENT: Re-edit of /MUSICIANS/H/Huelsbeck_Chris/Compilation_III.sid, Tune #4.
mywave82 commented 1 year ago

Which character encoding is your terminal btw?

drfiemost commented 1 year ago

It's UTF8

mywave82 commented 1 year ago

Please double check that the fault is not in SID file before digging yourself deep in, they should be stored in latin1 which is one way compatible with UTF-8. Atleast to my knowledge

drfiemost commented 1 year ago

No, they're compatible only for the ASCII part, see for example https://en.wikipedia.org/wiki/%C3%9C#Computing_codes The same is already done in the player for the song info using iconv.

mywave82 commented 1 year ago

You're right, I forgot the encoding. Latin1 converts directly into 8bit unicodes as is, but needs the utf-8 encoding to be applied.