2007/4/3, Thomas Christian Chust <[EMAIL PROTECTED]>:
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



Thanks Thomas, Thanks John !
thu


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

Reply via email to