How to write a unicode symbol in lua

前端 未结 4 1389
囚心锁ツ
囚心锁ツ 2020-12-20 16:57

How can I write a Unicode symbol in lua. For example I have to write symbol with 9658
when I write

string.char( 9658 );

I got an error.

4条回答
  •  一整个雨季
    2020-12-20 17:57

    To get broader support for Unicode string content, one approach is slnunicode which was developed as part of the Selene database library. It will give you a module that supports most of what the standard string library does, but with Unicode characters and UTF-8 encoding.

提交回复
热议问题