[Lazarus] UTF8 issue

Mattias Gaertner nc-gaertnma at netcologne.de
Wed Sep 7 15:08:09 CEST 2016


On Wed, 7 Sep 2016 13:09:07 +0200
Giuliano Colla <giuliano.colla at fastwebnet.it> wrote:

>[...]
>    CamelStrings: array [0..5] of UTF8String =(
>    ....
>    'Entry éèàù');
> 
> then the ComboBox displays
> 
>    Entry éèà ù

FPC does not use your LANG variable. Instead it always assumes
ISO-8859-1. See here:
http://wiki.lazarus.freepascal.org/FPC_Unicode_support#String_constants

Same for WideString and UnicodeString.

 
> 2) Under Lazarus 1.4.5 and fpc 2.6.4
> 
> Declaring either String or UTF8String doesn't make any difference, and 
> the ComboBox always displays the proper string.
> 
> What I'm missing? Is that an "improvement" generated by fpc 3.0.0 or I'm 
> doing something wrong?


Mattias


More information about the Lazarus mailing list