Traditional Culture Encyclopedia - Almanac inquiry - Huawei's mobile phone file name is garbled, but the content is normal.

Huawei's mobile phone file name is garbled, but the content is normal.

If the content is normal, there is no problem. Generally, the formats are GBK, UTf-8, iso8859- 1 and GB23 12. If the above forced conversion is unsuccessful, you can definitely solve the problem by trying these formats in turn.

If the downloaded file name is in Chinese, garbled code will appear. Usually, the obtained file is in "iso8859- 1" format and needs to be converted to "UTF-8" format.

Such as: string str = new string (str. getbyte ("UTF+0"), "ISO 8859-65438-8"); Read after performing a downward cast.