您好我想知道是否可以在 lua 5.1中Привет
翻译。\u041f\u0440\u0438\u0432\u0435\u0442
这个游戏里面没有utf8库,也没有unicode库。我在 github 上寻找了一个为我做这个的库,但我找不到适合这个的库
问问题
67 次
1 回答
0
https://github.com/perfgao/lua-resty-unicode/blob/master/lib/resty/unicode.lua
utf8_to_unicode("Привет")
>"\u041f\u0440\u0438\u0432\u0435\u0442"
于 2021-05-24T11:01:42.620 回答