【发布时间】:2011-02-13 07:53:54
【问题描述】:
Python 2.6 有一个奇怪而烦人的问题。我试图在我的嵌入式 Linux ARM 板上运行这个文件(和另一个)。 http://svn.tuxisalive.com/software_suite_v3/smart-core/smart-server/trunk/TDSService.py
我收到此错误:
文件“tuxhttpserver.py”,第 1 行 SyntaxError:编码问题:使用 物料清单
我知道错误与 BOM 字节等有关。但是,没有 BOM 字节,它是纯 Ascii。我用 Hexeditor 进行了检查,linux 文件命令显示它的 Ascii。
我吓坏了...代码在我的 Sheevaplug(也是基于 ARM 的系统)上运行良好。
【问题讨论】:
标签: python encoding ascii byte-order-mark