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;

--


--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to