From 8d36eb74ddf99b58aa560e6b0779b912a0520dc6 Mon Sep 17 00:00:00 2001 From: "[CST] Focus" Date: Tue, 17 Jan 2012 19:11:43 +0400 Subject: [PATCH] convertDVBUTF8: skip characters 0x80-0x9F Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/fc77e30427194035fc836d9d80955938391b0f9d Author: [CST] Focus Date: 2012-01-17 (Tue, 17 Jan 2012) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/sectionsd/edvbstring.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/sectionsd/edvbstring.cpp b/src/sectionsd/edvbstring.cpp index 62bc05b77..8226043da 100644 --- a/src/sectionsd/edvbstring.cpp +++ b/src/sectionsd/edvbstring.cpp @@ -660,7 +660,7 @@ std::string convertDVBUTF8(const char *data, int len, int table, int tsidonid) ++i; break; } - +//printf("convertDVBUTF8: table %d new table %d\n", table, newtable); if(!table) table = newtable; if(table == 64 && (newtable !=0 )){//for ISO6937 @@ -697,6 +697,8 @@ std::string convertDVBUTF8(const char *data, int len, int table, int tsidonid) res[t++]= 0x20; else if ((code == 0x8A)) res[t++]= '\n'; // 0x8a is vertical tab. Just use newline for now. + else if((code >= 0x80) && (code <= 0x9F)) + continue; else if (code < 0x800) // two byte mapping { res[t++]=(code>>6)|0xC0;