[Lazarus] LongMonthNames[3] = 'M?rz' in Windows XP with german locale

John Landmesser JohnML at online.de
Mon Jul 4 20:52:47 CEST 2011


Solution:
ShowMessage('März <> ' + AnsiToUtf8( LongMonthNames[3]));

Vincent Snijders explains:
> LongMonthNames is RTL, which uses the ansi encoding. If you want to
> show it using the LCL, convert it to UTF8.



Am 04.07.2011 19:29, schrieb John Landmesser:
> on two different PC with german locale  and Windows XP 
> LongMonthNames[3] = 'M?rz'
> ------------------------------------------------------------------------
>
> example:
>
> interface
> uses
> {$ifdef unix}clocale,{$endif}
>
>    ShowMessage('März <> ' + LongMonthNames[3]);
>
>
> Application.MainForm.Font.Charset = DEFAULT_CHARSET
>
> That problem doesn't exist for Debian-Sid Linux !?
>
>
> --
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
>
>
> --
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20110704/fe1c7393/attachment-0003.html>


More information about the Lazarus mailing list