why not allow directly utf8 encoded dvb texts? ;)
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>
Fri, 3 Nov 2006 01:15:14 +0000 (01:15 +0000)
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>
Fri, 3 Nov 2006 01:15:14 +0000 (01:15 +0000)
lib/base/estring.cpp

index 74d773c..014f6e7 100644 (file)
@@ -371,10 +371,8 @@ std::string convertDVBUTF8(const unsigned char *data, int len, int table, int ts
                        ++i;
                        eDebug("unsup. Big5 subset of ISO/IEC 10646-1 enc.");
                        break;
                        ++i;
                        eDebug("unsup. Big5 subset of ISO/IEC 10646-1 enc.");
                        break;
-               case 0x15:
-                       ++i;
-                       eDebug("unsup. UTF-8 encoding of ISO/IEC 10646-1.");
-                       break;
+               case 0x15: // UTF-8 encoding of ISO/IEC 10646-1
+                       return std::string((char*)data+1, len-1);
                case 0x0:
                case 0xC ... 0xF:
                case 0x16 ... 0x1F:
                case 0x0:
                case 0xC ... 0xF:
                case 0x16 ... 0x1F: