Re: [vdr] Converting from UTF-8 to ISO-8859-1

2008-05-20 Thread Joachim Wilke
2008/5/18 Klaus Schmidinger <[EMAIL PROTECTED]>: > Actually this conversion wasn't necessary so far. > It was always about converting strings from "some external character set" > to "the character set used by the system". > > But I guess it should be ok to do this (modified lines marked with MOD):

Re: [vdr] Converting from UTF-8 to ISO-8859-1

2008-05-18 Thread Klaus Schmidinger
On 05/18/08 18:53, Joachim Wilke wrote: > 2008/5/18 Klaus Schmidinger <[EMAIL PROTECTED]>: >> On 05/18/08 18:27, Joachim Wilke wrote: >>> Is there a reason for this? >> systemCharacterTable is only set if it is a single byte character set, >> which UTF-8 is not. >> >>> The conversion works fine, if

Re: [vdr] Converting from UTF-8 to ISO-8859-1

2008-05-18 Thread Joachim Wilke
2008/5/18 Klaus Schmidinger <[EMAIL PROTECTED]>: > On 05/18/08 18:27, Joachim Wilke wrote: >> Is there a reason for this? > > systemCharacterTable is only set if it is a single byte character set, > which UTF-8 is not. > >> The conversion works fine, if I use "UTF-8" instead of "NULL": >> cCharS

Re: [vdr] Converting from UTF-8 to ISO-8859-1

2008-05-18 Thread Klaus Schmidinger
On 05/18/08 18:27, Joachim Wilke wrote: > Dear experts, > > I am currently trying to convert a string to ISO-8859-1 using the > following code fragment: > > cCharSetConv conv(NULL, "ISO-8859-1"); > const char *s_converted = conv.Convert(string); > > Running VDR with UTF-8, this conversion fa

[vdr] Converting from UTF-8 to ISO-8859-1

2008-05-18 Thread Joachim Wilke
Dear experts, I am currently trying to convert a string to ISO-8859-1 using the following code fragment: cCharSetConv conv(NULL, "ISO-8859-1"); const char *s_converted = conv.Convert(string); Running VDR with UTF-8, this conversion failes (i.e., s_converted == string). This is due to the fac