guile-devel
[Top][All Lists]
Advanced

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

Re: Is there any thing to convert string encording?


From: Noah Lavine
Subject: Re: Is there any thing to convert string encording?
Date: Fri, 23 Nov 2012 08:55:23 -0500

In that case I believe you want to put the bits you're interested in in a bytevector, and use utf8->string, utf16->string, or utf32->string.

Noah


On Fri, Nov 23, 2012 at 2:48 AM, nalaginrut <address@hidden> wrote:
In ruby, we can use force_encoding to convert the encoding of a string:
"abc\u{6666}".force_encoding("UTF-8")

What's the same thing in Guile?

PS: I know Guile treat all strings with "UTF-8". I don't mean to encode
UTF-8 string. I need something like "force_encoding".




reply via email to

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