擅长:python、mysql、java
<p><a href="https://docs.python.org/2/library/sys.html" rel="noreferrer">getfilesystemencoding()</a>文档指向<a href="http://man7.org/linux/man-pages/man3/nl_langinfo.3.html" rel="noreferrer">nl_langinfo</a>文档,表明<code>LC_CTYPE</code>用于确定编码。你知道吗</p>
<p>因此,如果您的环境有<code>LC_CTYPE="C.UTF-8"</code>,您可能会有<code>UTF-8</code>作为<code>getfilesystemencoding()</code>输出,而不是<code>ANSI_X3.4-1968</code>(更好地称为US-ASCII)。你知道吗</p>