Android Question use the HttpJob Lib to download file chinese txt,the code is error

cd37ycs

Member
Licensed User
Longtime User
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.
 

cd37ycs

Member
Licensed User
Longtime User
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
Top