Hi everyone,
I wanted to try out printing some utf8 text to the console, but I ran into
some issues. This is my program:
(import utf8)
(print "őŐűŰ")
And when I run it on the command line with
csi test-utf.scm
then I get this output:
CHICKEN
(c) 2008-2019, The CHICKEN Team
(c) 2000-2007, Feli
Hi Mátyás,
On Sat, 23 Jul 2022 11:13:39 +0200 Mátyás Seress wrote:
> I wanted to try out printing some utf8 text to the console, but I ran into
> some issues. This is my program:
>
> (import utf8)
> (print "őŐűŰ")
>
> And when I run it on the command line with
>
> csi test-utf.scm
>
> then I
Yep, you were right. It indeed had to do with the code page that the
Windows command prompt uses by default which is code page 437. And the
reason why the equivalent C# program worked, is because when it executes it
automatically changes the code page of the terminal to utf-8 which is code
page 650
Hello Mátyás,
> Yep, you were right. It indeed had to do with the code page that the
> Windows command prompt uses by default which is code page 437. And the
> reason why the equivalent C# program worked, is because when it executes it
> automatically changes the code page of the terminal to utf-8