Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --- libsi/si.c 2015-05-25 08:44:24.132429634 +0200
- +++ libsi/si.c 2015-05-25 08:42:58.726199616 +0200
- @@ -351,11 +351,20 @@
- return false;
- }
- +/************ Modded for fix polish EPG character *********************************/
- const char *getCharacterTable(const unsigned char *&buffer, int &length, bool *isSingleByte) {
- const char *cs = "ISO6937";
- // Workaround for broadcaster stupidity: according to
- // "ETSI EN 300 468" the default character set is ISO6937. But unfortunately some
- // broadcasters actually use ISO-8859-9, but fail to correctly announce that.
- +
- +// Fix for PL many channels using ISO6937 while specifying different encoding...
- + if (strcspn((const char*)buffer,"\xC1\xC2\xC3\xC4\xC5\xC7\xC8\xCB\xCD\xCE\xCF\xE8\xF8") < strlen((const char*)buffer))
- + return cs;
- + // Below test for characters found in ISO-8859-2
- + else if (strcspn((const char*)buffer,"\xA1\xA3\xA6\xAC\xAF\xB1\xB3\xB6\xBC\xBF\xC6\xCA\xD1\xD3\xE6\xEA\xF1\xF3") < strlen((const char*)buffer))
- + return CharacterTables2[2];
- +
- if (OverrideCharacterTable)
- cs = OverrideCharacterTable;
- if (isSingleByte)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement