备份计划任务报错:'latin-1' codec can't encode characters in position
BT面板 开心版 7.9.4
使用计划任务备份网站或数据库都会报错,在计划任务里手动执行又没问题,自动执行命令也不不报错。
'latin-1' codec can't encode characters in position 0-4: ordinal not in range(256)
如果备份到本地会报如下错误:
Traceback (most recent call last):
File "/www/server/panel/script/backup.py", line 48, in <module>
backup.backupDatabaseAll(sys.argv)
File "/www/server/panel/script/backup.py", line 33, in backupDatabaseAll
self.backup_database_all(save)
File "class/panelBackup.py", line 470, in backup_database_all
result = self.backup_database(database['name'],save=save)
File "class/panelBackup.py", line 533, in backup_database
self.echo_start()
File "class/panelBackup.py", line 60, in echo_start
print("\u2605\u5f00\u59cb\u5907\u4efd[{}]".format(public.format_date()))
UnicodeEncodeError: 'latin-1' codec can't encode characters in position 0-4: ordinal not in range(256)
如果備份到本地會報如下錯誤:
页:
[1]