mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-26 23:13:13 +02:00
-add Basic Multilingual Plane of ISO/IEC 10646-1
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@1028 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
@@ -379,8 +379,9 @@ std::string convertDVBUTF8(const char *data, int len, int table, int tsidonid)
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 0x11:
|
case 0x11:// Basic Multilingual Plane of ISO/IEC 10646-1 enc (UTF-16... Unicode)
|
||||||
{} //eDebug("unsup. Basic Multilingual Plane of ISO/IEC 10646-1 enc.");
|
table = 65;
|
||||||
|
tsidonid = 0;
|
||||||
++i;
|
++i;
|
||||||
break;
|
break;
|
||||||
case 0x12:
|
case 0x12:
|
||||||
@@ -415,8 +416,16 @@ std::string convertDVBUTF8(const char *data, int len, int table, int tsidonid)
|
|||||||
//dprintf("recode:::: doVideoTexSuppl code %lX\n", code);
|
//dprintf("recode:::: doVideoTexSuppl code %lX\n", code);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!code)
|
if (!code) {
|
||||||
code=recode(data[i++], table);
|
if (table == 65) { // unicode
|
||||||
|
if (i+1 < len) {
|
||||||
|
code=(data[i] << 8) | data[i+1];
|
||||||
|
i += 2;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
code=recode(data[i++], table);
|
||||||
|
}
|
||||||
if (!code)
|
if (!code)
|
||||||
continue;
|
continue;
|
||||||
// Unicode->UTF8 encoding
|
// Unicode->UTF8 encoding
|
||||||
|
Reference in New Issue
Block a user