I don't know how LuaCOM handles Unicode when used with LuaPlus, but with
regular Lua, LuaCOM returns strings as UTF-8 and expects incoming
strings to be in UTF-8. This has been the case for years. So if
LuaPlus has functions to convert between wstrings and UTF-8, you should
use these.
To run a message loop, use the StartMessageLoop function in the LuaCOM
module.