Assuming I have such character stored in variable character
, how do I print it?
For example GREEK_SMALL_LETTER_XI
with code 958
.
(format t "~a" character)
would just give ?
Assuming I have such character stored in variable character
, how do I print it?
For example GREEK_SMALL_LETTER_XI
with code 958
.
(format t "~a" character)
would just give ?
The OP mentioned in a comment that he was moving to Linux. In SBCL 1.4.15.Debian (and I presume on other Linuxes) Unicode characters are only printed as characters (as opposed to codes) by the (format) function, and not by (print).
Example:
(print (code-char 26159)) produces "#\U662F"
which is the unicode index of the character.
while
(format T "~a" (code-char 26159)) produces "是"