[fpc-pascal] Unicode output on console works for me on Linux, not on Windows

Jonas Maebe jonas.maebe at elis.ugent.be
Mon Aug 1 14:32:36 CEST 2011


On 01 Aug 2011, at 08:09, Reinier Olislagers wrote:

> I tried to output Unicode text to console on English Windows Vista
> (using Lucida Console font, which shows Greek and Cyrillic  
> characters).
> Doesn't seem to work.

I think that you have to configure the console to use UTF-8 output  
(but I don't know how this is done on Windows). A bit like how on *nix  
UTF-8 input/output also only works if the console is configured for it  
(using e.g. LANG=en_US.UTF-8).

> (On Debian x64 it works perfectly - maybe because the default encoding
> I've got is UTF8: LANG environment variable is en_US.utf8?)


Indeed.


Jonas



More information about the fpc-pascal mailing list