Chinese texts in Scheme

(kbd-map
(:mode in-text?)
(“y a o /” “姚期智”)) ;; Chinese Computer scientist

The above keybinding does not insert the his Chinese name. Why?

I have found more things that does not work. For example, in a Scheme session, the code

(define x “你好”)

does not work. Because I do
(string-length x)
will return zero. Strange.

For key binding, we should use the cork-encoding.

For string-length, it works for me. But the length is not correct.

Alternatively, you may use tmstring-length. It will compute what you expected.

I will look deeper into this.