为了能快速了解并处理您的问题,请提供以下基础信息:
问题描述:系统unicode默认为英文,执行备份计划任务失败,提示字符转换错误。由于涉及其他应用需要,系统默认Unicode不能修改成中文,只能是英语,要怎么解决这个问题
------------------------------------START--------------------------------- Traceback (most recent call last): File "D:\BtSoft\panel\script\backup.py", line 354, in <module> backup.backupDatabase(sys.argv[2], sys.argv[3]) File "D:\BtSoft\panel\script\backup.py", line 99, in backupDatabase print(u"["+endDate+"] "+log) File "C:\Program Files\python\lib\encodings\cp1252.py", line 19, in encode return codecs.charmap_encode(input,self.errors,encoding_table)[0]UnicodeEncodeError: 'charmap' codec can't encode characters in position 22-24: character maps to <undefined>------------------------------------END------------------------------------ |
|