本帖最后由 堡塔运维香菜卷 于 2023-7-25 09:09 编辑
出错了,面板运行时发生错误!UnicodeEncodeError: 'utf-8' codec can't encode characters in position 0-1: surrogates not allowed
REQUEST_DATE: 2023-07-25 01:00:39 PAN_VERSION: 8.0.1 OS_VERSION: CentOS 7.6.1810 x86_64(Py3.7.9) REMOTE_ADDR: 39.149.19.218 REQUEST_URI: POST /files?action=GetDirREQUEST_FORM: {'p': '1', 'showRow': '500', 'path': '/www/wwwroot/default', 'is_operating': 'true', 'search': ''} USER_AGENT: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.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 0-1: surrogates not allowed
|
|