[plt-scheme] Unicode strings in mzscheme

From: Ian Oversby (oversby at googlemail.com)
Date: Sun Apr 22 13:17:19 EDT 2007

Hi,

How do I get unicode working (or at least, working as I would expect - I guess
it probably works already!) in MzScheme.  In DrScheme, string-ref returns a
reasonable value for an accented letter but MzScheme behaves differently.

This is DrScheme:

(display "más")
(newline)

(string-ref "más" 1)

And the result:

Welcome to DrScheme, version 360.
Language: Pretty Big (includes MrEd and Advanced Student).
más
#\á

And this is MzScheme:

C:\>mzscheme
Welcome to MzScheme version 360, Copyright (c) 2004-2006 PLT Scheme Inc.
> (string-ref "más" 1)
#\?

Thanks,

Ian


Posted on the users mailing list.