为了能快速了解并处理您的问题,请提供以下基础信息:
问题描述:数据库可以备份,但是无法导入:REQUEST_DATE: 2023-08-03 14:02:20 PAN_VERSION: 8.0.1 OS_VERSION: CentOS 7.4.1708 x86_64(Py3.7.9) REMOTE_ADDR: 172.20.255.254 REQUEST_URI: POST /files?action=GetDirREQUEST_FORM: {'tojs': 'GetFiles', 'p': '1', 'showRow': '500', 'path': '/www/backup/database', 'sort': 'mtime', 'reverse': 'True'} USER_AGENT: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36Traceback (most recent call last): File "/www/server/panel/BTPanel/__init__.py", line 2015, in publicObject res = run_obj.run(toObject, defs, get) File "/www/server/panel/BTPanel/__init__.py", line 1962, in run result = getattr(toObject, get.action)(get) File "class/files.py", line 471, in GetDir for file_info in self.__list_dir(get.path, get.sort, reverse): File "class/files.py", line 667, in __list_dir f_name.encode('utf-8')UnicodeEncodeError: 'utf-8' codec can't encode characters in position 68-69: surrogates not allowed
|
|