[JW Lua] FCString:CreateEnigmaStrings doesn't work on long unicode strings, but on short ones

Jari Williamsson jari.williamsson at mailbox.swipnet.se
Wed Jul 8 22:10:33 CEST 2015


On 2015-07-08 21:23, Jan Angermüller wrote:

> it's only the i.LuaString that troubles me.

Yes, since the LuaString method returns an 8-bit (UTF-8) string. If the 
UTF-16 to UTF-8 conversion is unknown and fails, the string will be empty.

Don't use LuaString for Unicode symbols that aren't in the standard 
Unicode text range.


Best regards,

Jari Williamsson





More information about the JWLua mailing list