Save as svg divided into layers (.tar) garbles layer names with CJK character on Windows

※I'm sorry but I am Japanese, so It's difficult for me to write bug report as English well. And, as reference, I also write original Japanese sentence.

Summary:

If I try to export SVG of each layers with "SVG divided into layers(.tar)", the export filenames will be garbled only layer name included CJK character(Ex: "山" "あ"). layer name with ASCII will not be garbled.

「レイヤーごとに分割されたSVG(.tar)」にて、レイヤーごとにSVGファイルを出力しようとすると、レイヤー名にCJK文字(「山」や「あ」など)が含まれている場合に文字化けして出力されてしまいます。ASCIIコードのみのレイヤー名では正しく出力されます。

Steps to reproduce:

English
  • open Inkscape
  • change layer(s) name to something included CJK character
  • "file" -> "Save as..." -> "SVG divided into layers(.tar)" (Try to save(export) SVG of each layers)
Japanese
  • InkScapeを(GUIで)開きます
  • レイヤー名をCJK文字を含む名前に変更します
  • 「ファイル」→「名前を付けて保存」→「レイヤーごとに分割されたSVG(.tar)」で、SVGファイルとして各レイヤーを保存しようとします

What happened?

The exported filename is garbled at only CJK character. These are in the exported tar file. エクスポートされたファイル名のうち、CJK文字の部分だけが文字化けします。文字化けするのは、出力したtarファイルの中にある「レイヤー名.svg」です。

What should have happened?

I think that problem caused by setting of character code. I run Inkscape on Windows10, and this OS use "SJIS", but Inkscape and other system may use "UTF-8"...? この問題は、文字コードの設定と変換がうまくいっていないことから発生していると考えています。Windows10でInkScapeを動かしていて、このOSは「SJIS」を使用していますが、InkScapeやその他システムは「UTF-8」を使用しているのではないでしょうか…?

Version Info:

- Inkscape Version: Inkscape 1.0.1 (3bc2e813f5, 2020-09-07) Pango version: 1.46.1
- Operating System: Windows 10 Pro 64Bit
- Operating System version: 1909(Build 18363.1139)

Display of Inkscape GUI (InkScapeのGUI画面)

キャプチャ

Saved path details

  • Saved directory name used CJK characters (but it is not problem, tar file will be exported successfully) セーブするディレクトリにCJK文字が含まれています(ただし、これは問題ではありません。tarファイルは正常にエクスポートされています)
  • tar file name is only used ASCII characters. (Please look at title of window of screen shot) tarファイルの名前にはASCII文字のみを使用しています(スクリーンショットのウィンドウのタイトルをご覧ください)。

Result of export SVG of each layers

It is a screen shot of tar file when I exported this file. このスクリーンショットは、このファイルをエクスポートしたときのtarファイルの中身です。 image

I sincerely hope that InkScape will grow as better software in the future. これからのInkScapeがより良いソフトウェアとして成長していくことを心より願っております。

Edited by Nathan Lee