It does work now in windows but still not in my PDA.The AnsiToUtf8 works fine in windows( to work the Assign() must be encoded to utf8 first with AnsiToUtf8).To my PDA with AnsiToUtf8 it shows me something but the letters are like...chinese.The English letters are ok!But the others(Greek) are not(Maybe doesn't support Greek???)!Thank you very much both.You've been very helpful!
No, no, no. UTF8 certanly does support Greek, only AnsiToUTF8 does not know that your file uses greek code page! If you know that your file will always be Greek, then here is what you should do:
First, add LConvEncoding unit to uses list.
Then, instead of AnsiToUTF8, use CP1253ToUTF8 (Greek is probably encoded with Win1253 code page).
So, this should work for you:
combobox.items.add(CP1253ToUTF8(mainform.TStringList));