decoder/sidplay: Fix windows-1252 to utf-8 string conversion

High Voltage SID Collection (HVSC) metadata fields are encoded in
windows-1252, as described in DOCUMENTS/SID_file_format.txt:

https://www.hvsc.c64.org/download/C64Music/DOCUMENTS/SID_file_format.txt

If utf-8 transcoding fails, or the ICU library is unavailable, fall
back to plain ASCII and replace other characters with '?'.
This commit is contained in:
Fredrik Noring
2019-08-04 08:07:42 +02:00
committed by Max Kellermann
parent 0ed10542cc
commit 7723c481db
2 changed files with 46 additions and 17 deletions

1
NEWS
View File

@@ -1,6 +1,7 @@
ver 0.21.14 (not yet released)
* decoder
- sidplay: show track durations in database
- sidplay: convert tag values from Windows-1252 charset
ver 0.21.13 (2019/08/06)
* input