Actions
Bug #718
openinvalid character conversion
Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
09/22/2011
Due date:
% Done:
0%
Estimated time:
0:00 h
Description
Conversion of UTF-8 for some char not work. Problem is that most chars in UTF have not eqvivalent in ISO-8859-1. This chars are converted to "??". Better choice is use most similar char.
Here is original code:
#if VDRVERSNUM < 10711 conv = new cCharSetConv(cCharSetConv::SystemCharacterTable() ? cCharSetConv::SystemCharacterTable() : "UTF-8", "ISO-8859-1"); #else conv = new cCharSetConv(NULL, "ISO-8859-1"); #endif
Here is fixed code:
#if VDRVERSNUM < 10711 conv = new cCharSetConv(cCharSetConv::SystemCharacterTable() ? cCharSetConv::SystemCharacterTable() : "UTF-8", "ISO-8859-1//TRANSLIT"); #else conv = new cCharSetConv(NULL, "ISO-8859-1//TRANSLIT"); #endif
No data to display
Actions