Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:bug: Unable to export Data if workspace folder contains non-ASCII characters Fix https://github.com/siyuan-note/siyuan/issues/8678

Daniel164c679d89e0
diff --git a/kernel/model/export.go b/kernel/model/export.go
index a3ae259813..676f37e742 100644
--- a/kernel/model/export.go
+++ b/kernel/model/export.go
@@ -255,6 +255,12 @@ func ExportDataInFolder(exportFolder string) (name string, err error) {
return
}
name = filepath.Base(zipPath)
+ name, err = url.PathUnescape(name)
+ if nil != err {
+ logging.LogErrorf("url unescape [%s] failed: %s", name, err)
+ return
+ }
+
targetZipPath := filepath.Join(exportFolder, name)
zipAbsPath := filepath.Join(util.TempDir, "export", name)
err = filelock.Copy(zipAbsPath, targetZipPath)