character encoding problem
[email protected] (Don Cohen) Wed, 15 Jan 2020 18:52:49 +0000 (UTC)
| Newsgroups | gmane.lisp.clisp.general |
|---|---|
| Message-ID | <[email protected]> |
(code-char #xd83c)
#\UD83C
(setf str (make-string 1 :initial-element *))
"\355\240\274"
(EXT:CONVERT-STRING-TO-BYTES * charset:utf-8)
#(237 160 188)
(EXT:CONVERT-STRING-from-BYTES * charset:utf-8)
*** - EXT:CONVERT-STRING-FROM-BYTES: Invalid byte sequence #xED #xA0 #xBC in
CHARSET:UTF-8 conversion
What's illegal about this byte sequence?
It seems to be the right one for #\UD83C.
(unusal to have to deal with base 8,10,16 in successive lines)
_______________________________________________
clisp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/clisp-list