为了能快速了解并处理您的问题,请提供以下基础信息:
9.3.0
Debian GNU/Linux 12 (bookworm) x86_64(Py3.7.16)
自动备份mysql数据库报错,自动执行报错 手动执行正常
Traceback (most recent call last): File "/www/server/panel/script/backup.py", line 53, in <module> backup.backupDatabaseAll(sys.argv[3], echo_id) File "/www/server/panel/script/backup.py", line 33, in backupDatabaseAll self.backup_database_all(save, echo_id=echo_id) File "class/panelBackup.py", line 835, in backup_database_all status, backup_path = self.backup_database(db_name, save, echo_id=echo_id) File "class/panelBackup.py", line 849, in backup_database self.echo_start() File "class/panelBackup.py", line 120, 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) |
|