将pyx编译为c而不删除北欧(无法识别)字母时,请避免使用“无法识别的字符”:æøå

时间:2017-11-23 19:13:49

标签: python cython

_______Main.pyx___________________________________________
*My script which uses nordic letters, these: "æ, ø, å"*
__________________________________________________________


_______setup.py___________________________________________
from distutils.core import setup 
from Cython.Build import cythonize 
setup(ext_modules = cythonize('Main.pyx')) 
__________________________________________________________

我正在尝试将我的python代码(.pyx)转换为c,我使用的命令是:

"python setup.py build_ext --inplace"

但是我收到了“unrecognized character”错误 - >“类Nøgletal_Analyse:” (这一点都不奇怪,毕竟我在剧本中使用北欧字母)

如何在不删除代码中的北欧字母的情况下避免使用unrecognized character error

0 个答案:

没有答案