[fpc-pascal] Re: Ido not understand UTF8 in Windows

Tomas Hajny XHajT03 at mbox.vol.cz
Fri Feb 19 23:55:39 CET 2010


On 19 Feb 10, at 17:27, JoshyFun wrote:
> Friday, February 19, 2010, 3:22:15 AM, you wrote:
> 
> LFDAM> Ok,
> LFDAM> The steps are :
> LFDAM> 1) Change the Font Type at Lucida Console Font :
> LFDAM> http://www.conoce3000.com/fig01.jpg
> LFDAM> 2) Compile the program with fpc 2.4. :
> LFDAM> 3) change to UTF8, with chcp 65001 command
> LFDAM> 4) run the program
> LFDAM> Step 01 to 04 : http://www.conoce3000.com/fig02.jpg
> LFDAM> The source code : http://www.conoce3000.com/Prueba005.pp
> LFDAM> The error ocurred only when use Lucida console Font.
> 
> The problem is that by default in Windows stdout is opened in 7 bits
> mode (text), this means that writeln when emits some information in
> UTF8 with any char >127 will enter in some kind of error reported from
> rtl or Windows kernel.

No, this can't work that way, otherwise output of any accented 
character in one of the Windows codepages would result in the same 
error.

Tomas




More information about the fpc-pascal mailing list