On Sat, 10 Nov 2007, Felipe Monteiro de Carvalho wrote:

> 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.

As far as I know, FPC has no support for a BOM marker at all ?

Michael.

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to