Tag: locale

Python3的UTF8编解码器没有按照预期在docker解码Ubuntu的:可靠

下面的东西真的让我感到困惑,我的笔记本电脑上的python版本以及Docker的Ubuntu中的python版本:可靠的图像打印不同的结果与他们的编解码器,这是什么原因? 例如,我的笔记本上的python3(ubuntu,trusty): Python 3.4.3 (default, Apr 14 2015, 14:16:55) [GCC 4.8.2] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import codecs >>> codecs.decode(b'\xe2\x80\x99','utf8') ''' >>> python3上的Docker Ubuntu的:最新的: Python 3.4.0 (default, Apr 11 2014, 13:05:11) [GCC 4.8.2] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import codecs >>> […]