Hi
I use the following sample code from Corona Docs -> SDK API -> Reading and Writing Files, trying to read a chinese character but get wrong coding string back, but file:read() works fine with english charactor only, is file:read() only support one byte charactor ?
local path = system.pathForFile( “myfile.txt”, system.DocumentsDirectory )
local file = io.open( path, “r” )
local savedData = file:read( “*a” )
io.close( file )
file = nil
Best Regards,
Farmer Tien