lua 5.1将 utf8 俄文字符翻译成 unicode?

你好我想知道在 lua 5.1 中是否可以将 Привет 翻译成 \u041f\u0440\u0438\u0432\u0435\u0442。 这个游戏中没有 utf8 库,也没有 unicode 库。 我已经在 github 上寻找适合我的库,但找不到一个适合这个游戏的库

点赞
用户12354066
用户12354066
utf8_to_unicode("Привет")
>"\u041f\u0440\u0438\u0432\u0435\u0442"

将 UTF-8 编码的字符串转换为 Unicode 编码的字符串。

2021-05-24 11:01:42