Hello FPC-Pascal, Wednesday, February 17, 2010, 10:46:18 PM, you wrote:
LFDAM> {código de página UTF8} LFDAM> //sin firma Unicode BOM LFDAM> Begin LFDAM> Writeln('code page UTF8 - 65001 en Windows'); LFDAM> Writeln('camión') LFDAM> End. LFDAM> Using the command chcp, change the code page to 65001, the UTF-8 for LFDAM> Windows. I compiled the program, and then run and get the following errror: LFDAM> Runtime error 101 at $00401460 LFDAM> $00401460 LFDAM> $004069B1 If you are doing this in Lazarus by default you are creating a GUI application, so any writeln will raise an error as stdout is closed. LFDAM> The same program when compiled and run on linux, no error. works well. LFDAM> What am I doing wrong? Linux always have a stdout open. LFDAM> Original Message Spanish: LFDAM> No entiendo UTF8 en consola Windows LFDAM> Yo escribí el siguiente programa, usando un editor UTF8, sin marca de BOM. LFDAM> Usando el comando chcp, cambio el código de página a 65001, el UTF8 para LFDAM> Windows. Compilo el programa, y después lo ejecuto y aparece el siguiente LFDAM> error : LFDAM> El mismo programa, cuando lo compilo y lo ejecuto en linux, no aparece LFDAM> ningún error. funciona bien. LFDAM> ¿Qué estoy haciendo mal? Lo mismo pero en español :) Vamos que elimines el flag de "Win32 GUI application" en Compiler -> Linker. Por cierto CP_UTF8 sólo funciona en >=NT 4.0 con fuentes TrueType en ventana y muchos bats y similares dejan de funcionar. -- Best regards, JoshyFun _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal