Steve Jenson's blog

openmcl handles utf8 decently

β€’

openmcl handles utf8 decently

I tested openmcl recently to see if it can store and print UTF-8 without harming it. Worked like a charm. You can most likely attribute this to CLHS 13.1.3 that says a character is a non-negative integer. In Lisp, an integer has no upper bound.

testing-utf8.lisp: (defvar *utf8* "𐌸𐌹𐌢𐌰𐌹: π…πŒΏπŒ»π†πŒΉπŒ»πŒ°")
(format t "~A" *utf8*)

$ openmcl -l testing-utf8.lisp
; loading system definition from
; /Users/stevej/.openmcl/asdf-install/asdf-install.asd into #<Package "ASDF0">
; registering #<SYSTEM ASDF-INSTALL #x63BD006> as ASDF-INSTALL
𐌸𐌹𐌢𐌰𐌹: π…πŒΏπŒ»π†πŒΉπŒ»πŒ°
Welcome to OpenMCL Version (Beta: Darwin) 0.14.2-p1!
?
Awesome!

# — 26 June, 2004