betonme / e2openplugin-EnhancedMovieCenter

EMC is an enhanced movielist replacement for Linux based receivers.
36 stars 61 forks source link

Incorrect special characters for Czech and Slovak long texts #254

Closed juraj1000 closed 5 years ago

juraj1000 commented 5 years ago

Hello, I've just implemented the latest update of enigma2-plugin-extensions-enhancedmoviecenter_4.0+git1582+20181231_all, I use DM500HD with Open PLi. There is a new issue with Czech and Slovak special characters in "long" texts for detail description of recordings. The special CZ/SK characters are incorrectly displayed in EMC screen. And if I press the button Info in EMC there is the same issue with incorrect CZ/SK special characters. But if I press the button Info in the skin (not in EMC) the same "long" text for detail description is displayed with correct CZ/SK special characters, there is not any issue with it. It seems that EMC doesn't know correctly implement special characters for long texts even when the skin can interpret it correctly. I think that EMC knew interpret correctly special characters in older release. Could you correct it please? Juraj

dhwz commented 5 years ago

There are NO special CZ/SK characters, get your Image fixed as this is not an EMC issue. EMC is behaving properly and decoding any code page.

pjsharp commented 1 year ago

Even though this issue was a long time ago, I would like to briefly address it.

There are NO special CZ/SK characters, get your Image fixed as this is not an EMC issue. EMC is behaving properly and decoding any code page.

Unfortunately that is not entirely true. Many EPG events in the Slavic region are encoded with ISO-8859-2. And this encoding was not previously supported by EMC. Instead, the text was subjected to automatic recognition and this suggests an incorrect encoding (iso-8859-1) and than incorrect characters are displayed in EMC. I was able to reproduce the problem on different systems and he's not the only one with this problem from what I've read on various forums.

This PR https://github.com/betonme/e2openplugin-EnhancedMovieCenter/pull/298 should solve this problem.