plugins-workspace icon indicating copy to clipboard operation
plugins-workspace copied to clipboard

Tauri V2: writeFile can not handle UTF-8 characters in the filename

Open fmabap opened this issue 1 year ago • 0 comments

Hi, I migrated today my app to Tauri V2.

But now I'm facing an issue with the writeFile method of the “@tauri-apps/plugin-fs” plugin. When I’m saving a file with this method, where the filename contains special German characters like “äöü”, then they are replaced with a “?”.

It looks like that the method does not support UTF-8 characters in the filename.

I tried it on Windows 11 on ARM and Windows 11 X64.

Here is a screenshot from the debugger. image

Here is the result in the explorer:

image

Here are among others my dependencies in the package.json:

"@tauri-apps/plugin-dialog": "^2.0.0-rc.1",
"@tauri-apps/plugin-fs": "^2.0.0-rc.2",
"@tauri-apps/plugin-os": "^2.0.0-rc.1",

Here are among others my dependencies in cargo.toml:

tauri-plugin-dialog = "2.0.0-rc"
tauri-plugin-fs = "2.0.0-rc"
tauri-plugin-os = "2.0.0-rc"

Can you please fix it?

Best regards Frank

fmabap avatar Sep 28 '24 18:09 fmabap