[fpc-devel] assign constant text to widestring
Jonas Maebe
jonas.maebe at elis.ugent.be
Wed Oct 22 19:05:09 CEST 2008
On 22 Oct 2008, at 15:36, Michael Schnell wrote:
>
> Maybe this already has been discussed in one of the "Unicode"
> threads here, but I did not follow all of them down to the latest
> twig and leaf. So I start a new thread hoping for a more
> comprehensive result.
I'm nevertheless going to point you to a thread which was started
Saturday and concluded today.
> When I want to simply assign a constant text "ö2" to a WideString I
> would think that I just write s := 'ö2'; . But I found that this
> does not work, but that it creates a WideString of length 3 that
> contains the three 8-Bit subcodes of the utf8-coded string "ö2",
> zero-extended to 16 Bits, each in one WideChar element. For me this
> is very surprising and incompatible to the same code (s := 'ö2'; )
> used in a Turbo-Delphi program.
http://lists.freepascal.org/lists/fpc-pascal/2008-October/018967.html
Please read the entire thread, and if you have more question
afterwards, then ask them.
Jonas
More information about the fpc-devel
mailing list