Newbie: Displaying Unicode characters in CLISP



I am a newbie to CLISP, and I am a bit lost. I am trying
(unsuccessfully ) to display Unicode characters, such as a Greek alpha
on the screen. I have tried the following:

(code-char #x03B1) ==> #\GREEK_SMALL_LETTER_ALPHA, a good start, but
not an alpha character.

If I do:
(format t "~a" (code-char #x03B1)) ==> I get ERROR character #
\03B1..... cannot be represented in the character set CHARSET:CP850

If I change the encoding with:

(setf *terminal-encoding* (make-encoding :charset charset:utf-8))

and try the previous command, now I get something different: two DOS-
style box characters.

I have read in the implementation notes that CLISP must be compiled
with the Unicode option activated. I don't know how to see if this is
the case, but I suspect it is on because of the different behavior
when I change the terminal-encoding (am I right?). So I suspect that I
still need to change some other settings.

Is there any way to display non-ASCII characters?

I am running version 2-41of CLISP in Win2000, with several Unicode
fonts.

Thanks a lot for your help.

.



Relevant Pages

  • Re: Unicode Support
    ... >> (I know this is a poor example, but think about other languages, eg ... First things first, when you register your RosAsm windows classes, you ... the messages with ANSI / UNICODE parameters in ANSI or UNICODE form... ... with their alphabet characters, as with the numbers and punctuation...so, ...
    (alt.lang.asm)
  • Re: heeeeeeeeeeeeeeeellllllllllllllppppppppppppppppppppp
    ... This means that if you develop the bad habit of using char * (left over ... It usually takes me five minutes to create a Unicode version of any of my apps, ... BOOL and bool are different data types. ... can be up to MAX_PATH characters). ...
    (microsoft.public.vc.mfc)
  • Re: How to check variables for uniqueness ?
    ... characters is the sequence SS. ... is simply capitalizing strings. ... The fact that case mapping in English /is/ simple is neither here not ... That is a fair criticism of the Unicode position. ...
    (comp.lang.java.programmer)
  • Horribly overdue update to unicode.txt
    ... of the Linux Assigned Names And Numbers Authority project. ... The Linux kernel code has been rewritten to use Unicode to map ... In particular, ESC (U is no longer "straight to font", since the font ... Actual characters assigned in the Linux Zone ...
    (Linux-Kernel)
  • Re: Unicode Support
    ... > | single bit extra from ASCII for any ordinary ASCII characters... ... UNICODE character then check what "range" it's in with the table ... 7-bit ASCII characters are encoded in exactly the same way in UTF-8 ... All non-ASCII characters use a multi-byte sequence ...
    (alt.lang.asm)