Hi,
I wondered about converting to UTF8 ( EscapeLatin1toUTF8() ). What's about another codepages? Here is patch that must working for all cases....
Cheers Oleg
Hi,
Oleg wrote:
Hi,
I wondered about converting to UTF8 ( EscapeLatin1toUTF8() ). What's about another codepages?
I tried your patch as I'd need it for ISO_8859-2.
Here is patch that must working for all cases....
What VDR version are you using? It doesmn't work for several 1.3.x versions because of the following:
+char *Convert2UTF(const char *Text) +{
- const char *f = I18nCharSet(Setup.OSDLanguage);
^^^^ this has changed at some version to
const char *f = I18nCharSets()[Setup.OSDLanguage]; ^^^^^
But neveretheless, even if it now compiles with the latest VDR, the plugin crashes when it starts rendering the text into the DVD menu images. At least on my not-yet-UTF-8 ready system Is this a requirement, to get my system UTF-8 compliant? Does VDR also need its own UTF-8 patch (Alexander Riedel posted the last version 0.0.3b with Freetype2 for vdr-1.3.27 on 2005.07.23, maybe I should also try to make this one work with current VDR)? So, Oleg, how did you make it work?
Regards, Lucian
On Monday 24 October 2005 11:45, Lucian Muresan wrote:
What VDR version are you using? It doesmn't work for several 1.3.x
versions because of the following:
+char *Convert2UTF(const char *Text) +{
- const char *f = I18nCharSet(Setup.OSDLanguage);
^^^^
this has changed at some version to
const char *f = I18nCharSets()[Setup.OSDLanguage]; ^^^^^
Sorry. I have copy this function from UTF patch --------------------------------------------------------------------------------------------------------- const char * I18nCharSet(int Index) { return 0 <= Index && Index < I18nNumLanguages ? Phrases[1][Index] : NULL; } --------------------------------------------------------------------------------------------------------
Also you can use a macro tr()
const char *f = tr ("iso8859-1"); instead of I18nCharSet()
Best Regards Oleg