[plt-scheme] encoding: latin1 and utf

From: Pedro Kröger (kroegerlistas at pedrokroeger.net)
Date: Sat Apr 30 08:40:21 EDT 2005

Thanks for your reply.

Daniel Pinto de Mello e Silva <daniel.silva at gmail.com> writes:

> Does (locale-string-encoding) return "ISO-8859-1" ?

yes:

(locale-string-encoding)
"ISO-8859-1"

here is what I get:

(string->bytes/latin-1 "programação")
bytes->string/utf-8: string is not a well-formed UTF-8 encoding: #" (string->bytes/latin-1 \"programa\347\343o\")"

(string->bytes/locale "programação")
bytes->string/utf-8: string is not a well-formed UTF-8 encoding: #"(string->bytes/locale \"programa\347\343o\")"

the locale I use is "en_US".

Any ideas? 

Pedro Kröger



Posted on the users mailing list.