This is a problem with libedit, which Racket uses by default, and the
version of libedit that comes with Mac OS is not built with Unicode
support.

If you insteall readline (e.g., through Homebrew), then installing the
"readline-gpl" Racket package will use readline and support Unicode
input.

At Fri, 14 Sep 2018 01:28:46 -0700 (PDT), Jon Kleiser wrote:
> If I enter this in the REPL in my macOS Terminal
> (string->list "hei")
> then I get '(#\h #\e #\i), as expected, but if I replace "hei" with "høy", 
> the input line suddenly looks like this
> (string->list "h\U+FFC3\U+FFB8y")
> and what I get back is '(#\h #\y). The letter "ø" has been stripped away. 
> The same happens with letters "æ" and "ø", typical Norwegian characters.
> Is there something I can do to make the macOS Terminal REPL handle these 
> Norwegian characters better?
> In the DrRacket REPL this strange translation and stripping does not happen.
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Racket Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to racket-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to