chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Chicken-users] Unicode inside csi


From: minh thu
Subject: [Chicken-users] Unicode inside csi
Date: Tue, 3 Apr 2007 19:01:12 +0200

Hi,

I try to print correctly unicode on the console (under Linux).
What should I do for this ?

I don't understand the following, can someone explain it ?

Version 2.6 - linux-unix-gnu-x86 - [ libffi dload ptables applyhook ]
(c)2000-2007 Felix L. Winkelmann
; loading /home/mt/.csirc ...
; loading /usr/local/lib/chicken/1/readline.so ...
; loading library regex ...
#;1> (char->integer (string-ref "\u00f9" 0))
195
#;2> #x00f9
249
#;3> (print "ù")
ù
"ù"
#;4> (char->integer (string-ref "ù" 0))
195
#;5> (print (string-ref "ù" 0))
�
#\�
#;6> (print 'ù')
ù
|ù|

In particular, why value of line 1 is 195 and value of line 2 is 249 ?
Actual decimal value for ù is 249.

Thanks,
thu

reply via email to

[Prev in Thread] Current Thread [Next in Thread]