[fpc-devel] gui console in windows

Rimgaudas Laucius rimga at ktl.mii.lt
Mon Nov 8 14:09:18 CET 2004


Hi,
Maybe i am wrong, but it seems to me that SetConsoleOutputCP function works 
only on WinNT systems.

----- Original Message ----- 
From: "KJK::Hyperion" <noog at libero.it>
To: "FPC developers' list" <fpc-devel at lists.freepascal.org>
Sent: Monday, November 08, 2004 2:37 PM
Subject: Re: [fpc-devel] gui console in windows


> At 01.07 05/11/2004, you wrote:
>>We have problems with keybord drivers and text encoding in it (text 
>>prepared with windows editor needs to be encoder to dos cp when outputing 
>>if you want to see national characters properly).
>
> just change the console's output codepage ("chcp" command at the prompt or 
> SetConsoleOutputCP to do it programmatically). It defaults to the system's 
> OEM codepage, for consistence with full-screen mode, but it can be set to 
> any valid codepage, including UTF-7 and UTF-8. Also, if you write Unicode 
> text there is no problem
>
> _______________________________________________
> fpc-devel maillist  -  fpc-devel at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-devel
> 






More information about the fpc-devel mailing list