how to convert utf8 string to unicode string?

Discussion of Common Lisp
Post Reply
liuhs
Posts: 3
Joined: Wed Mar 30, 2011 7:29 pm

how to convert utf8 string to unicode string?

Post by liuhs » Wed Mar 30, 2011 7:50 pm

hi,I'm a common lisp beginner.does anyone can tell me how to convert gbk utf8 and unicode strings to each other?
thx!

nuntius
Posts: 538
Joined: Sat Aug 09, 2008 10:44 am
Location: Newton, MA

Re: how to convert utf8 string to unicode string?

Post by nuntius » Thu Mar 31, 2011 6:57 am

This is an implementation-specific question. Please see your implementation's documentation. Look for phrases like "external encoding" or "external format".

e.g.
http://www.sbcl.org/manual/index.html#External-Formats
http://ccl.clozure.com/manual/chapter4.5.html
http://www.clisp.org/impnotes/open.html

gugamilare
Posts: 406
Joined: Sat Mar 07, 2009 6:17 pm
Location: Brazil
Contact:

Re: how to convert utf8 string to unicode string?

Post by gugamilare » Thu Mar 31, 2011 2:42 pm

If you want to create a program that is portable across different implementations, you may try one of those libraries:
Trivial UTF-8, simple portability layer,
CL-Unicode, which deals with more atributes of unicode,
Babel, which deals with several charset encodings, not just unicode.

Post Reply