chicken-users
[Top][All Lists]
Advanced

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

Re: [Chicken-users] Unicode inside csi


From: Thomas Christian Chust
Subject: Re: [Chicken-users] Unicode inside csi
Date: Tue, 03 Apr 2007 20:42:09 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.2) Gecko/20070222 SeaMonkey/1.1.1

minh thu wrote:

> [...]
> In particular, why value of line 1 is 195 and value of line 2 is 249 ?
> Actual decimal value for รน is 249.
> [...]

Hello,

by default, CHICKEN's strings are bytestrings, not character strings.
Therefore the string-ref call is returning the first byte of the
extended character marker of UTF-8, not the character itself.

If you want CHICKEN's strings to behave as UTF-8 character strings, have
a look at the utf-8 egg.

cu,
Thomas





reply via email to

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