python create_project.py -project demo -package com.test.demo -language cpp
Traceback (most recent call last):
File "create_project.py",line 209,in <module>
processPlatformProjects(platform)
File "create_project.py",line 161,in processPlatformProjects
if (os.path.exists(proj_path + src) == True):
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe6 in position 24: ordinal not in range(128)
在create_project.py 添加
importsys
reload(sys)
sys.setdefaultencoding('utf8')
如下图:
原文链接:https://www.f2er.com/cocos2dx/343578.html