mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-06-06 13:53:54 +02:00
fix(fs): fix writeFile converting UTF-8 characters in path into replacement character (#1965)
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -1072,7 +1072,7 @@ async function writeTextFile(
|
||||
|
||||
await invoke('plugin:fs|write_text_file', encoder.encode(data), {
|
||||
headers: {
|
||||
path: path instanceof URL ? path.toString() : path,
|
||||
path: encodeURIComponent(path instanceof URL ? path.toString() : path),
|
||||
options: JSON.stringify(options)
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user