|
On 14 Aug 2009, at 05:28, Jerome Vuarand wrote:
Please correct me if I'm wrong, or if better options exist.AFAIK there is little reason to use UTF-16 in Lua rather than UTF-8. With UTF-8 most string library functions can be used to some extent. There are nice functions in the win32 API to convert from UTF-8 to UTF-16 and back : MultiByteToWideChar and WideCharToMultiByte.
We've been using UTF-8 as well. Works great, and it's also cross- platform (wide characters aren't really).
David Dunham Macintosh Game Developer GameHouse Studios +1 206 926 5722 www.gamehouse.com "They said it couldn't be done but sometimes it doesn't work out that way." -- Casey Stengel