Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#12507 closed Bug Report - General (fixed)

EPG language

Reported by: Walter Cheuk <wwycheuk@…> Owned by: Karl Egly
Priority: minor Milestone: 0.27.6
Component: MythTV - EIT Version: 0.27-fixes
Severity: medium Keywords:
Cc: Ticket locked: no

Description

In Hong Kong, EPG is delivered in two languages (Chinese and English), but the Chinese can't be shown. UI and Guide language are already set to Chinese. EPG did show 'slots' in the table, so it must be receiving something, but only 'Unknown' are shown for the program names. If the Guide language is set to English, English program names can be shown.

Attachments (1)

dvboutput (14.5 KB) - added by Walter Cheuk <wwycheuk@…> 4 years ago.

Download all attachments as: .zip

Change History (12)

comment:1 Changed 4 years ago by Karl Egly

Status: newinfoneeded_new

Can you provide a specimen of such an event_information_section? E.g. the output of "dvbsnoop -n 1 -ph 4 0x12".

30-minute blocks of "Unknown" appear in some places when no guide data is available.

Changed 4 years ago by Walter Cheuk <wwycheuk@…>

Attachment: dvboutput added

comment:2 Changed 4 years ago by Walter Cheuk <wwycheuk@…>

Please see attached file.

comment:3 Changed 4 years ago by Stuart Auchterlonie

Looks like we will need to add support for multibyte languages and codes

            DVB-DescriptorTag: 77 (0x4d)  [= short_event_descriptor]
	            descriptor_length: 30 (0x1e)
	              ISO639_2_language_code:  chi
	            event_name_length: 25 (0x19)
	            event_name: "j.XÇe°yÀ.2.0.1.5.[n/Sð.]"  -- Charset: ISO/IEC 10646-1 2Byte pairs Basic Multilingual Plane
	            text_length: 0 (0x00)
	            text_char: ""

comment:4 Changed 4 years ago by Karl Dietz <dekarl@…>

Resolution: fixed
Status: infoneeded_newclosed

In 5ba240c34d17734d0da947079b1567a52c7287f0/mythtv:

Add support for 16bit Unicode (UCS-2) strings in EIT data

Fixes #12507
Refs #12526

comment:5 Changed 4 years ago by Karl Dietz <dekarl@…>

In 1fb7f4ad87bc9970355b9bab19f9255a09c14468/mythtv:

Add support for 16bit Unicode (UCS-2) strings in EIT data

Fixes #12507
Refs #12526

Copied from 5ba240c34d17734d0da947079b1567a52c7287f0, but without
unit test, as these have been refactored and need manual merging.

comment:6 Changed 4 years ago by Karl Egly

Milestone: unknown0.27.6

Can you verify that this correctly decodes the chinese EPG? The unit test showed some characters that appear to be chinese in my terminal, but that's all I can say about them :/

comment:7 Changed 4 years ago by Karl Dietz <dekarl@…>

In 7f512d8f7f33953a95321159dc9c196f67fe75b3/mythtv:

Extend unit test to cover byte order / endianess

Refs #12507
Refs #12526

comment:8 Changed 4 years ago by Karl Dietz <dekarl@…>

In bc47cc808828f1c9d8c8b045dea950149eee5879/mythtv:

Handle endianess. MPEG stuff is big endian, Intel PCs are little endian

Fixes #12507
Refs #12526

comment:9 Changed 4 years ago by Karl Dietz <dekarl@…>

In d54aa81bfcf413c1adf01a51472efa0fa47cc172/mythtv:

Handle endianess. MPEG stuff is big endian, Intel PCs are little endian

Fixes #12507
Refs #12526

(cherry picked from commit bc47cc808828f1c9d8c8b045dea950149eee5879)

comment:10 Changed 4 years ago by Karl Egly

Walter, I fixed a bug regarding the byte order. Now the text decodes to something that looks like "title:subtitle" with 5 chinese signs before/after the colon. The first version should work, too. But only on big endian hosts (e.g. Raspberry Pi 2).

comment:11 Changed 4 years ago by Walter Cheuk <wwycheuk@…>

Thank you for your great help, it's working now.

Hope MythTV 0.27.6 will come out soon and be included in Mythbuntu 16.04.

Note: See TracTickets for help on using tickets.