In Lua, for an iPad Corona project, I m requesting a UTF-8 server text file (containing Chinese characters) using network.request, but the result when displayed in the console or in the app shows as "garbage". Google Chrome, for instance, displays the same UTF-8 page fine, as I m setting the http header when the server sends this (using PHP) to Content-Type: text/plain; charset=utf-8 (and there s no BOM, byte order mark either). The "garbage" I m seeing in Lua looks similar to when I "force" Chrome to render the page as ISO-8859-1 using the options menu.
Does anyone have any help or pointers? If all else fails, how would I convert the "garbage" string back to its UTF-8 origins within Lua?
Thanks for any help!