Re: [Gauche-devel] character code conversion --- any idea?
R7RS Scheme scripting engine
Status: Beta
Brought to you by:
shirok
From: Shiro K. <sh...@la...> - 2001-06-04 19:48:34
|
From: mi...@ne... (MINOURA Makoto) Subject: Re: [Gauche-devel] character code conversion --- any idea? Date: 04 Jun 2001 17:40:56 +0900 > How do you plan the relationship between the native > multibyte handling of Gauche and that charconv routine would be? In Gauche, you can have two different types of string---a sequence of characters, or a sequence of bytes (I call them ``complete string'' adn ``incomplete string'' now, but I don't like them and will change.) If you convert a string to the character encoding that is different from the native encoding, you'll get a byte string. Since Gauche uses multibyte representation, the same data (byte sequence) can be interpreted in two ways; each string object has a flag to indicate the type (character string or binary string). Other than the flag, no encoding information is attached to a string object. It is up to you how to interpret the sequence of bytes you get. --shiro |