How to check encoding of a CSV file

后端 未结 6 2009
醉梦人生
醉梦人生 2020-12-05 12:41

I have a CSV file and I wish to understand its encoding. Is there a menu option in Microsoft Excel that can help me detect it

OR do I need to make use of programming

6条回答
  •  孤城傲影
    2020-12-05 13:25

    Use chardet https://github.com/chardet/chardet (documentation is short and easy to read).

    Install python, then pip install chardet, at last use the command line command.

    I tested under GB2312 and it's pretty accurate. (Make sure you have at least a few characters, sample with only 1 character may fail easily).

    file is not reliable as you can see.

提交回复
热议问题