C cd37ycs Member Licensed User Longtime User May 15, 2019 #1 Hi,I want to save the txt file to my phone and display to EditText,the txt file include the chinese,file can download,but use job.GetString, the code is error. i search about charset info,GB2312 UTF-8...how can i display the chinese, thanks a lot.
Hi,I want to save the txt file to my phone and display to EditText,the txt file include the chinese,file can download,but use job.GetString, the code is error. i search about charset info,GB2312 UTF-8...how can i display the chinese, thanks a lot.
C cd37ycs Member Licensed User Longtime User May 15, 2019 #2 File.WriteString(File.DirRootExternal,"1.txt",job.GetString) save to 1.txt, the code is error. Dim out As OutputStream out=File.OpenOutput(File.DirRootExternal,"2.txt",False) File.Copy2(job.GetInputStream,out) out.Close when open the 2.txt,chinese can display. Done.thank you all the same. Upvote 0
File.WriteString(File.DirRootExternal,"1.txt",job.GetString) save to 1.txt, the code is error. Dim out As OutputStream out=File.OpenOutput(File.DirRootExternal,"2.txt",False) File.Copy2(job.GetInputStream,out) out.Close when open the 2.txt,chinese can display. Done.thank you all the same.
Erel B4X founder Staff member Licensed User Longtime User May 15, 2019 #3 Please use [code]code here...[/code] tags when posting code. You can use Job.GetString2 to set an encoding other than UTF8. Upvote 0
Please use [code]code here...[/code] tags when posting code. You can use Job.GetString2 to set an encoding other than UTF8.