[Lazarus] PAnsiChar to UTF8 issues
José Mejuto
joshyfun at gmail.com
Wed Apr 10 10:07:07 CEST 2013
El 09/04/2013 19:35, Leonardo M. Ramé escribió:
>
> No, I've tried all kinds of combinations of ansitoutf8, unicodestring,
> etc, but nothing works, all returns "?" or the box with the X in the
> place of "ñ" or accents.
>
Hello,
Maybe you have an ANSI string inside a string type declared as UTF8
coded, so try this:
var
ansivar: ansistring;
begin
ansivar:=lStr; //Your lStr
SetCodePage(RawByteString(ansivar),CP_ACP,false);
//Display the ansivar instead lStr to check.
end;
--
More information about the Lazarus
mailing list