"script/ide/Encoding.lua"
whenever you want to display any file related strings, or use GUI strings as input to file IOs. In the future, we must be aware of the NPL file encoding, MCML encoding, GUI encoding, jabber message, REST API, and all system IO string encodings. UTF8 is the recommented choice for NPL file, MCML file, GUI, Jabber and REST. however, all strings used by system calls like IO functions are only supported in native system encoding. For an example, please see FileExplorerCtrl.lua
and PersonalWorldPage.lua
. PersonalWorldPage.lua
demostrates conversion between IO, MCML, and GUI.