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: Pedro Henrique Antunes de Oliveira
Subject: Re: [Chicken-users] What is the charset of the characters of a string literal?
Date: Sat, 16 Jul 2011 23:25:03 -0300

Not that it *knows*, but I was thinking that if to store a string in
memory it reads all bytes right after the opening " of the string up
to the byte right before the closing ", then the encoding of that
string is the encoding of the source file.

For that to happen, chicken doesn't need to know the charset of the file.

On Sat, Jul 16, 2011 at 11:13 PM, John Cowan <address@hidden> wrote:
> Pedro Henrique Antunes de Oliveira scripsit:
>
>> What is the charset of the characters of a string literal?
>>
>> Is it the source file's charset?
>
> Yes, but a \u or \U escape is always converted to a UTF-8 representation
> using 1-4 bytes, depending on its value.  Basically, Chicken doesn't
> know or care how source files are encoded.
>
> --
> Your worships will perhaps be thinking          John Cowan
> that it is an easy thing to blow up a dog?      http://www.ccil.org/~cowan
> [Or] to write a book?
>    --Don Quixote, Introduction                 address@hidden
>



reply via email to

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