[Approved] Support of ISO/IEC 10646-1(UTF-16) text encoding in DVB (Channel names, EPG, etc.) (1 Viewer)

AlexPlas

Portal Pro
August 24, 2006
231
41
Kyiv, Ukraine
Home Country
Ukraine Ukraine
Hello

I have found a problem with DVB texts when provider sends information in UTF-16 encoding (actually it was tested on <DVBSBridge for IPTV> virtual TV card).

CDvbUtil::getString468A function breaks UTF-16 strings and all Unicode characters with codes greater that 0xFF become unreadable.

I have changed CDvbUtil::getString468A function to reencode UTF-16 strings in UTF-8.
 

Attachments

  • dvb_utf16.patch
    30.6 KB

god_md5

Portal Pro
March 24, 2008
104
2
Home Country
Hong Kong Hong Kong
:oops:
some channel epg is lost the last word ,and utf8 channel name is not work ,or not have i not sure
or mediaportal not have filter set .
 

Attachments

  • ScreenHunter_03 Jun. 18 19.57.jpg
    ScreenHunter_03 Jun. 18 19.57.jpg
    78.5 KB
  • ScreenHunter_02 Jun. 18 19.56.jpg
    ScreenHunter_02 Jun. 18 19.56.jpg
    117.7 KB
  • utf8.zip
    30.6 KB

AlexPlas

Portal Pro
August 24, 2006
231
41
Kyiv, Ukraine
Home Country
Ukraine Ukraine
Problem with lost last character is fixed. I have updated the patch in first post.
god_md5 also complains of Unicode character 0x2162 (Ⅲ) which is somewhere translated into three I characters. I have rechecked my new code and DvbTextConverter class and both them do not perform such translation.
 

god_md5

Portal Pro
March 24, 2008
104
2
Home Country
Hong Kong Hong Kong
test the 1.1 ALPHA the epg in utf16 is error.
like this
2009-08-06 22:53:57.227500 [EPG Update thread]: -> 8/13/2009 1:15:00 AM-8/13/2009 1:45:00 AM gq_5g
2009-08-06 22:53:57.228500 [EPG Update thread]: -> 8/13/2009 1:45:00 AM-8/13/2009 2:10:00 AM jû}N
2009-08-06 22:53:57.229500 [EPG Update thread]: -> 8/13/2009 2:10:00 AM-8/13/2009 2:15:00 AM fBaRÕ
 

Users who are viewing this thread

Top Bottom