chicken-users
[Top][All Lists]
Advanced

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

[Chicken-users] Re: Unicode inside csi


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

2007/4/3, minh thu <address@hidden>:
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 'ù')
ù
|ù|

Ouch, forget the last one :)


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]