mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 09:21:09 +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
Origin commit data
------------------
Commit: 598438a86f
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2011-01-13 (Thu, 13 Jan 2011)
Origin message was:
------------------
-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;
|
||||
}
|
||||
case 0x11:
|
||||
{} //eDebug("unsup. Basic Multilingual Plane of ISO/IEC 10646-1 enc.");
|
||||
case 0x11:// Basic Multilingual Plane of ISO/IEC 10646-1 enc (UTF-16... Unicode)
|
||||
table = 65;
|
||||
tsidonid = 0;
|
||||
++i;
|
||||
break;
|
||||
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);
|
||||
}
|
||||
|
||||
if (!code)
|
||||
code=recode(data[i++], table);
|
||||
if (!code) {
|
||||
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)
|
||||
continue;
|
||||
// Unicode->UTF8 encoding
|
||||
|
Reference in New Issue
Block a user