[fpc-pascal] Please Help with inifile in WinCE (ReadSectionValues into stringlist)
JoshyFun
joshyfun at gmail.com
Sat Sep 12 16:27:23 CEST 2009
Hello FPC-Pascal,
Saturday, September 12, 2009, 8:30:02 AM, you wrote:
e> tl[i]:=ConvertEncoding(tl[i],GuessEncoding(tl[i]),EncodingAnsi);
e> memo1.lines.add(tl[i]);
e> Now all works fine when the (2nd half) Spanish part has only english
e> characters.
e> But when there are spanish special characters (accented A or O and similar)
e> the tl[]
e> line is not written to memo1 at all.
I think this is a Lazarus subject but:
tl[i]:=ConvertEncoding(tl[i],'iso88591','utf8');
Because the ini file has spanish text so the source encoding should be
iso-8859-1 and target encoding should be UTF8 to be displayed in a
memo box.
--
Best regards,
JoshyFun
More information about the fpc-pascal
mailing list