编码

作者: lindyang | 来源:发表于2021-07-01 21:16 被阅读0次

    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

    相关文章

      网友评论

          本文标题:编码

          本文链接:https://www.haomeiwen.com/subject/ridsultx.html