[fpc-devel] utf8 in 2.6.0

Jonas Maebe jonas.maebe at elis.ugent.be
Tue Jan 1 18:00:59 CET 2013


On 01 Jan 2013, at 17:51, Martin Schreiber wrote:

> Thanks, another question, or is the behavior already documented?

What you are asking about has always been the same. I don't know to what extent it is documented.

> {$codepage utf8}
> ...
> UnicodeStringVar:= 'abcd'#228#252#246;
> 
> Does it store 'abcdäüö' in trunk?

I have no idea how anything I wrote suggests that it wouldn't. As mentioned, the only difference is that string constants containing characters >#127 are no longer always converted to unicodestring constants at compile time. They are ansistring constants with the appropriate code page by default, and hence are only converted (at compile, since they are constants) to a different string type/code page when required.


Jonas




More information about the fpc-devel mailing list