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

_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to