2007/4/3, minh thu <[EMAIL PROTECTED]>:
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

_______________________________________________
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users

Reply via email to