chicken-users
[Top][All Lists]
Advanced

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

Re: [Chicken-users] UTF-8 support in eggs


From: Mario Domenech Goulart
Subject: Re: [Chicken-users] UTF-8 support in eggs
Date: Tue, 08 Jul 2014 14:03:10 +0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

On Tue, 08 Jul 2014 17:27:27 +0400 Yaroslav Tsarko <address@hidden> wrote:

> On 08.07.2014 16:40, Mario Domenech Goulart wrote:
>
>> On the other hand, we risk breaking eggs that operate on latin1
>> text. UTF-8 support may also affect performance-sensitive code.
>
> Isn`t UTF-8 backward-compatible with Latin-1 and ASCII encodings?
> AFAIR UTF-8 is the best choice for software which operates on one-byte
> ASCII/Latin1 strings.

They are compatible only in the 7-bit ASCII range.  The remaining bit in
the byte makes the whole difference. :-) In UTF-8 it means either
"here's your 8-bit character" or "look at the next byte".  In latin1 it
always means "here's your 8-bit character".

Best wishes.
Mario
-- 
http://parenteses.org/mario



reply via email to

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