trilium icon indicating copy to clipboard operation
trilium copied to clipboard

(Bug report) In the exported md file, the Chinese name can't be connected to the original file

Open starsareintherose opened this issue 3 years ago • 5 comments

Preflight Checklist

  • [X] I have searched the issue tracker for a bug report that matches the one I want to file, without success.

Trilium Version

0.48.8

What operating system are you using?

Other Linux

What is your setup?

Local + server sync

Operating System Version

ArchLinux

Expected Behavior

can same of the original name

Actual Behavior

in the file

![](1_08.%E9%87%91%E7%BC%95%E6%A2%85%E7%9B%AE/image.png)![](1_08.%E9%87%91%E7%BC%95%E6%A2%85%E7%9B%AE/%E7%BB%BF%E8%97%BB%E9%97%A8.jpg)

but the real path is

1_08.金缕梅目/绿藻门.jpg 
1_08.金缕梅目/image.png

Additional Information

No response

starsareintherose avatar Dec 17 '21 03:12 starsareintherose

TBH I don't fully understand what's wrong here. The easiest would be if you could export the problematic subtree as ZIP, then I could reproduce it:

image

You can attach the ZIP file here or send it to [email protected]. Thanks!

zadam avatar Dec 17 '21 19:12 zadam

sent and said in the email

starsareintherose avatar Dec 17 '21 19:12 starsareintherose

maybe OP wants the original characters without urlencode

Nriver avatar Dec 20 '21 01:12 Nriver

I ran into the same problem too. According to my test, if there is Chinese character or space key in the note name, when export .md file(with descendants), the referred pictures would fail to load.

image

Now let's see an example:

image

I've installed a plugin for Word named Writage to open .md file. What I want is like this:

image

If there is a space in file name, it will end up like this:

image

If there are Chinese character(s), will be like this:

image

Hope @zadam will fix this.

supermayx avatar Jun 01 '22 08:06 supermayx

I'm thinking it's either problem of turndown library of encoding the filepath or the Writage plugin not processing it correctly ... difficult to say though.

zadam avatar Jun 02 '22 12:06 zadam