chicken-users
[Top][All Lists]
Advanced

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

Re: [Chicken-users] What is the charset of the characters of a string li


From: Kon Lovett
Subject: Re: [Chicken-users] What is the charset of the characters of a string literal?
Date: Sat, 16 Jul 2011 18:59:34 -0700

On Jul 16, 2011, at 5:35 PM, Pedro Henrique Antunes de Oliveira wrote:

> What is the charset of the characters of a string literal?
> 
> Is it the source file's charset?

Yes, since it only understands Unicode in the UTF-8 encoding. So the following 
is valid (embedded \u44A5 codepoint):

        (string-length (symbol->string 'ab䒥cd)) ;=> 7

(Chicken w/o the utf8 egg cannot easily, or correctly, manipulate UTF-8 strings 
using the usual Scheme APIs however.)

> 
> _______________________________________________
> Chicken-users mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/chicken-users




reply via email to

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