[racket] What encoding does racket/drracket use for bytestring literals?
#lang racket
(bytes=? #"äöå"
(string->bytes/latin-1 "äöå"))
(bytes=? (string->bytes/utf-8 "äöå")
(string->bytes/locale "äöå"))
(not (bytes=? #"€"
#"\244"))
gives me #t, #t and #t on both racket and drracket. So in other words
latin-1 chars are interpreted as latin-1, but latin-9 is something
else. And it definately isn't using the system locale, which is UTF-8
on my computer.
So how does racket decode bytestring literals?
--
Tomi Pieviläinen, +358 400 487 504
A: Because it disrupts the natural way of thinking.
Q: Why is top posting frowned upon?