擅长:python、mysql、java
<p>好吧,utf-8现在是交换和Linux世界中事实上的标准,但是还有很多其他编码。在</p>
<p>常见的例子有latin1、latin9(与欧元符号相同)和cp1252(它们的windows变体)。在</p>
<p>在您的情况下:</p>
<pre><code>>>> x.encode('cp1252')
'Ko\x9aick\xfd'
</code></pre>
<p>因此<code>y</code>字符串似乎是<code>cp1252</code>编码的。在</p>