guile-user
[Top][All Lists]
Advanced

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

Re: I'm looking for a method of converting a string's character encoding


From: Eli Zaretskii
Subject: Re: I'm looking for a method of converting a string's character encoding
Date: Mon, 30 Apr 2012 15:21:14 +0300

> Date: Mon, 30 Apr 2012 12:18:59 +0200
> From: Daniel Krueger <address@hidden>
> Cc: address@hidden, address@hidden, address@hidden
> 
> I think strings should be encoding `independent', so you don't have to
> mind that if you don't need to, and if you're working with a special
> encoding you're working on a representation of the `text' as a number
> of characters encoded in some numbers, so you use a bytevector.

That would do, I think.

> The only thing I'm not sure about is whether guile supports encoding a
> string (into a bytevector) in some other format than UTF-8, so if
> there don't exist other procedures I would suggest adding a string to
> bytevector decoder which takes an encoder and the encoders (or just
> procedures which convert the string directly into a bytevector in a
> specific encoding).
> 
> WDYT?

Sounds like a plan to me ;-)



reply via email to

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