Page 1 of 1

how to convert utf8 string to unicode string?

Posted: Wed Mar 30, 2011 7:50 pm
by liuhs
hi,I'm a common lisp beginner.does anyone can tell me how to convert gbk utf8 and unicode strings to each other?
thx!

Re: how to convert utf8 string to unicode string?

Posted: Thu Mar 31, 2011 6:57 am
by nuntius
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

Re: how to convert utf8 string to unicode string?

Posted: Thu Mar 31, 2011 2:42 pm
by gugamilare
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.