Sebastian Kraft schrieb:
same thing the other way round:
I read an iso8859 string from a textfile. e.g. the 'ö' is encoded by 0xF6.
When I output this string to gtk2 listview the 'ö' is drawn as '?'.
Even when I do utf8encode or ansitoutf8 on the string containing 'ö' it is
still shown as unknown -> '?'
As far as I know utf-8 and iso8859 encodings should be compatible on the first
255 positions of charset...
No. Only the first 128 positions.
You've to write your own code to do so. As said before, Ansistring
means: use the system locale on unixes. So on a utf-8 system ansistrings
are actually utf-8 strings. The RTL can't know which code page it should
use anyways.
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives