Panagiotis Sidiropoulos wrote:
Thanks for advices, but it seems that 'f: TextFile' and 'readln(f, some_variable)' is causing the problem, because 'label.caption := some_variable' will give only squares on label.I had such dificulties lately trying to manage Unicode texts. List members guided me to use UTF...* set of functions to manipulate Unicode strings and finally I got it. I'm not a high skilled programmer but because I mostly deal with such texts (it is Greek you see) I may think something.If it is on Windows visual component should support Unicode, your code may have no problem. There are available such components. If it is on Linux, I think you have to compile with gtk2 in order to get Unicode support. In any case font used should also support alphabets used in text. * you can use UTF8Copy() instead of Copy(), UTF8Pos instead of Pos() etc. This set of functions is implemented in lclproc. Panagiotis Στις 24-03-2006, ημέρα Παρ, και ώρα 20:17 +0100, ο/η bobby έγραψε: How can I change the code for loading the file, in order to get the lines loaded correctly? bobby _________________________________________________________________ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives |
- Re: [lazarus] Converting Unicode to ANSI bobby
- Re: [lazarus] Converting Unicode to ANSI Panagiotis Sidiropoulos
- Re: [lazarus] Converting Unicode to ANSI Panagiotis Sidiropoulos
- Re: [lazarus] Converting Unicode to ANSI Danny Milosavljevic
