On Nov 10, 2007 3:31 PM, Mattias Gaertner <[EMAIL PROTECTED]> wrote: > The source code is UTF-8. Are you sure, that cwstrings works under > linux with an ISO charset as default? And what about windows, if the > codepage is 1251 (or whatever non UTF-8)?
Under windows it will usually work because of a coincidence which seams to work on most cases. SynEdit usually won't add a BOM, so FPC thinks the file is encoded in ansi, and then at run-time it identifyes the system as using ansi too, so it doesn't convert, and it doesn't mess the utf-8 strings. Unintuitively, the utf-8 code get's messed if you add a BOM marker to the source code. More information here: http://www.freepascal.org/mantis/view.php?id=9305 -- Felipe Monteiro de Carvalho _________________________________________________________________ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
