Error uploading file encoding

asked 2018-12-04 18:37:45 +0800

salmon gravatar image salmon
1 1

I use the upload to upload a CSV text files, the encoding of the file to GBK, can be used in response to I upload the methods of EncodingDetect. GetJavaEncodeByte (event. GetMedia () getStringData () getBytes ()) to obtain its code, get utf-8, I hope I can continue to retain GBK, otherwise when I read this file will appear behind the Chinese garbled, give advice or comments please, thank you! In general, you want the file to be saved in its original encoding when you upload it. thank you

delete flag offensive retag edit
Be the first one to answer this question!
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

1 follower



Asked: 2018-12-04 18:37:45 +0800

Seen: 4 times

Last updated: Dec 04 '18

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More