ModelEngine-Group / ModelEngine-Group/nexent
[Bug] skill上传后文件名是乱码
Open
@Jasonxia007 is already working on this.
Since Aug 2, 2026.
Improvement
- Dominant language
- Python
- Stars
- 5.9k
- Forks
- 731
- Avg merge
- 19h 34m
- Merged PRs (30d)
- 172
Description
Nexent Version
2.3.0
Problem Description
skill zip包,其中有md文件,md文件名编码是GBK,此时上传skill后,前端显示的文件名是乱码。后台nexent-data目录下的md文件名也是乱码。
如果把zipfile读取文件的方式从_with zipfile.ZipFile(zip_stream, "r")_ as zf改为_with zipfile.ZipFile(zip_stream, "r", metadata_encoding="gbk") as zf_则不会乱码,但是这样改可能会引入其它问题。
Reproduction Steps
No response
Additional Information
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.