repo init 老代码线时,报错:UnicodeDecodeError: 'ascii' codec can't decode byte 0xe7 in position 14:ordinal not in range(128)
repo init 时,repo错误:
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe7 in position 14:
ordinal not in range(128)
解决方法:
打开 .repo/repo/main.py
头部加上:
import sys
reload(sys)
sys.setdefaultencoding('utf8')
再重新repo init即可