[fpc-devel] UTF-8 string literals
Mattias Gaertner
nc-gaertnma at netcologne.de
Fri May 5 16:13:12 CEST 2017
On Fri, 5 May 2017 15:55:32 +0200 (CEST)
Michael Van Canneyt <michael at freepascal.org> wrote:
> On Fri, 5 May 2017, Mattias Gaertner wrote:
>
> > On Fri, 5 May 2017 14:30:32 +0200 (CEST)
> > Michael Van Canneyt <michael at freepascal.org> wrote:
> >
> >> [...]
> >> > AFAIK FPC stores UTF-8 string literals (-Fcutf8) as widestrings
> >> > instead of UTF8String. Please correct me if I'm wrong.
>
> To make sure I was presenting correct facts, I did some tests.
>
> As a result of the tests, I think the above statement is wrong.
Naah, not wrong, just a non precise term "UTF-8 string literal". ;)
ASCII is stored by FPC as 8-bit string. No problem with that.
The interesting part are the non ASCII strings. Try your code with
the string examples I gave.
Mattias
More information about the fpc-devel
mailing list