[plt-scheme] encoding: latin1 and utf
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