ModelEngine-Group / ModelEngine-Group/nexent

[Bug] skill上传后文件名是乱码

Open
#3,511 1 comment 0 reactions 1 assignee View on GitHub

@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_则不会乱码,但是这样改可能会引入其它问题。

Image
Reproduction Steps

No response

Additional Information

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.