更新时间:2023-02-26 20:08:26
Lua没有对开箱即用的unicode字符的适当支持,但是有很好的库可以解决这个问题.我从来没有使用过cocos2d,我不确定他们是否有任何附加组件可以解决这个问题.但是您可以尝试使用以下一种: https://luarocks.org/modules/xavier-wang/luautf8.我曾经成功使用过一次.希望这会有所帮助!
Lua does not have proper support to unicode characters out of the box, but there are good libraries that will fix that. I have never used cocos2d and I'm unsure if they have any add-ons to deal with this. But you could try using this one:https://luarocks.org/modules/xavier-wang/luautf8. I have used it with success once. Hope this helps!