编码
2021-07-01 本文已影响0人
lindyang
http://blog.chinaunix.net/uid-21756505-id-2234997.html?utm_source=jiancool
chardet.detect(info.filename)['encoding'] 探测编码
something.decode('utf8', errors='ignore') # replace, 默认strict
https://blog.csdn.net/cbbbc/article/details/47462015
localectl set-locale 设置 locale
locale-gen
/etc/default/locale
sudo localctl set-locale en_US.UTF-8
sudo dpkg-reconfigure locales