2014-10-12, 10:24
(2014-10-08, 12:59)Natronch Wrote: Hi Janbar,
after updating to MythTV 0.28 and Helix, your new add on now works much better for me. One issue I still have, is that German special characters (ä,ö,ü...) are not displayed in the EPG. This did work fine with the old plugin but I guess this is something which was accessed on the database directly.
This is how it looks when i use wget against mythtv:
Code:wget "http://localhost:6544/Guide/GetProgramGuide?StartTime=2014-10-08T19:51:00&EndTime=2014-10-08T19:51:00&StartChanId=1004&NumChannels=1" -O - -S -q
HTTP/1.1 200 OK
Date: 8 Oct 2014 10:58:28
Server: MythTV/0.28-pre-2253-g940dfc1-dirty Linux/3.13.0-36-generic UPnP/1.0
Connection: Keep-Alive
Keep-Alive: timeout=10
Accept-Ranges: bytes
Cache-Control: no-cache="Ext", max-age = 5000
ETag: "d6c5cbe39faae44063a70efc37fa282638a7f386"
X-UA-Compatible: IE=Edge
Content-Type: text/xml
Content-Length: 1395
transferMode.dlna.org: Interactive
<?xml version="1.0" encoding="UTF-8"?><ProgramGuide xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.0" serializerVersion="1.1"><StartTime>2014-10-08T19:51:00Z</StartTime><EndTime>2014-10-08T19:51:00Z</EndTime><StartChanId>1004</StartChanId><EndChanId>1004</EndChanId><NumOfChannels>1</NumOfChannels><Details>false</Details><Count>1</Count><AsOf>2014-10-08T10:58:28Z</AsOf><Version>0.28.20140924-1</Version><ProtoVer>83</ProtoVer><Channels><ChannelInfo><ChanId>1004</ChanId><ChanNum>3</ChanNum><CallSign>SRF info</CallSign><IconURL>/Guide/GetChannelIcon?ChanId=1004</IconURL><ChannelName>SRF info</ChannelName><Programs><Program><StartTime>2014-10-08T19:50:00Z</StartTime><EndTime>2014-10-08T20:00:00Z</EndTime><Title>SRF Börse</Title><SubTitle></SubTitle><Category>News</Category><CatType></CatType><Repeat>false</Repeat><VideoProps>0</VideoProps><AudioProps>0</AudioProps><SubProps>0</SubProps><Recording><RecordedId>0</RecordedId><Status>0</Status><Priority>0</Priority><StartTs xsi:nil="true"></StartTs><EndTs xsi:nil="true"></EndTs><RecordId>0</RecordId><RecGroup></RecGroup><PlayGroup></PlayGroup><StorageGroup></StorageGroup><RecType>0</RecType><DupInType>1</DupInType><DupMethod>1</DupMethod><EncoderId>0</EncoderId><EncoderName></EncoderName><Profile></Profile></Recording><Artwork><ArtworkInfos/></Artwork></Program></Programs></ChannelInfo></Channels></ProgramGuide>
The Title of the show contains a "ö" which is not displayed in xbmc.
By just looking at the code, I could not find the problem. I would have to debug, but maybe you already know the purpose?
Thanks & regards
René
No issue from addon side. The strings are collected with charset utf-8 and transfered to XBMC without parasitic encoding. Here i use french translations without issue.
Running cmyth without this issue, i think one way: Is your database initialized with charset utf-8 ?
The db connection of cmyth is initialized with collation utf-8 to support very old MythTV backend (< 0.24). Characters are re-encoded to UTF by this way. But since 0.24 your database should be converted/created using utf-8 charset only.
An other cause could be XBMC theme doesn't use font with european extended characters.
Please let me know.