In English win10, I use excel to open a csv file containing Chinese characters exported from other software. The Chinese characters become garbled. If I use python, can I decode it into correct Chinese characters? How to do it?
曾经蜡笔没有小新2017-07-05 10:37:24
Notepad++ opens the csv and can convert the encoding to utf-8 without BOM, and then check if it is still garbled
習慣沉默2017-07-05 10:37:24
You can try the Chardet
package, which can detect most commonly used encodings, determine the encoding first, and then convert the encoding. If the encoding cannot be detected, it should be really garbled.
Chardet
Introduction: http://hao.jobbole.com/chardet/