[plt-scheme] unicode string

From: Eli Barzilay (eli at barzilay.org)
Date: Sat Mar 26 17:29:14 EST 2005

On Mar 26, Hans Oesterholt-Dijkema wrote:
> Hans Oesterholt-Dijkema schreef:
> 
> > What should I use with C interfacing, e.g. interfacing with SQLite?
> > strings, or bytes? Are strings in mzscheme 299.100 now unicode?
> > Are they internally encoded as UTF-8? Or multibyte unicode?
> >
> > Best whishes,
> >
> > Hans Oesterholt-Dijkema
> 
> I think I understand. UCS4/UTF-16 strings in mzscheme,

UCS4.


> need to be converted to UTF-8 to interface with C and vise versa.

Yes, but you can also do this abstraction in Scheme, leaving the C
interface to deal with byte strings only -- using
string->bytes/utf8.

-- 
          ((lambda (x) (x x)) (lambda (x) (x x)))          Eli Barzilay:
                  http://www.barzilay.org/                 Maze is Life!



Posted on the users mailing list.