lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Unicode chars in scheme?


From: Mark Polesky
Subject: Re: Unicode chars in scheme?
Date: Wed, 24 Jun 2009 01:06:36 -0700 (PDT)

Tao Cumplido wrote:

> Thanks. It didn't work right away but I figured it out.
> 
> (display #x00a9) -> 169> 
> (display (char? #x00a9)) -> #f
> (display (number? #x00a9)) -> #t 
> (display (integer->char #x00a9)) -> © 
> 
> I still wish there was a direct way but this will do.


This is also an option:

(define (display-unicode x)
  (display (integer->char x)))

(display-unicode #xa9)

(for-each display-unicode
  (list #x66 #x6f #x6f #x62 #x61 #x72 #xa9))

HTH
- Mark








reply via email to

[Prev in Thread] Current Thread [Next in Thread]