Author Topic: EPG and UTF-8  (Read 3457 times)

Offline clausmuus

  • Full Member
  • ***
  • Posts: 125
    • View Profile
    • MLD
    • Email
EPG and UTF-8
« on: October 17, 2012, 08:10:05 »
Hi,

there is a problem with EPG data that contains UTF-8 characters. If it contains e.g. a German Umlaut, the EPG text will be cut at this character. Do you know about this, and is there a solution?
Must I set especial environment variables to fix this?

Claus
MLD - A Distribution also for the Raspberry PI

Offline glotzi

  • Full Member
  • ***
  • Posts: 24
    • View Profile
Re: EPG and UTF-8
« Reply #1 on: October 17, 2012, 08:50:29 »
This problem is not limited to epg data, all string are cut of. E.g recording names.

I'm not 100% sure, but this problem is related to MLD. My own build vompclient seems to work fine with raspbian.

Offline MartenR

  • Hero Member
  • *****
  • Posts: 789
    • View Profile
Re: EPG and UTF-8
« Reply #2 on: October 17, 2012, 15:41:06 »
In osdvector the locale is set with
Quote
setlocale(LC_CTYPE,"C.UTF-8");
I use the probably debian specific locale "C.UTF8", which say c behaviour but UTF-8 since I do not know the language the user will support.
You probably have to add also something like "C.UTF8" to your dist in order that the string conversion routines are working properly.

Marten

Offline clausmuus

  • Full Member
  • ***
  • Posts: 125
    • View Profile
    • MLD
    • Email
Re: EPG and UTF-8
« Reply #3 on: October 17, 2012, 20:05:49 »
Than you, this information helps. I have now add the c.utf-8 language configuration to the MLD and now it will shown correct.

Claus
MLD - A Distribution also for the Raspberry PI