On Nov 24, 2007 7:33 AM, Vasily I. Volchenko <[EMAIL PROTECTED]> wrote: > UTF8 might be good in the case of international texts mostly English. You say > that pascal program > is such a text, and I would agree with you. But we are living in a real > world, with a tons of text > files.
LCL internal encoding is not the same thing as source code encoding which is not the same things as arbitrary text data used by your application. The 3 things are loosely related only, and proper conversion can make all 3 interoperate while using different encodings. Just because you are using source code encoded at utf-8 this doesn't mean your application needs to read text data from users encoded on utf-8 too. Of course, if the data is not in utf-8 you need to convert it if you plan on passing it to LCL, but there are plenty of routines to do this task, such as Utf8Encode, Utf8Decode, Utf8ToAnsi, AnsiToUtf8, etc. There are also some winapi routines for windows only applications: MultiByteToWideChar and WideCharToMultiByte -- Felipe Monteiro de Carvalho _________________________________________________________________ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives