Chinese encoding issue
Summary
This article tell u how to simulate string write to db that come from some application.You will know how it works
Preliminary knowledge
Encodes this String into a sequence of bytes using the named charset,storing the result into a new byte array.
Constructs a new String by decoding the specified array of bytes using the specified charset.
Demo
1 | try { |
encoding and decoding
reference
All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.
Comment