Skip to content

Cannot load images which were named with non-ASCII chars #1604

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
yinhaiICON opened this issue May 16, 2019 · 4 comments
Open

Cannot load images which were named with non-ASCII chars #1604

yinhaiICON opened this issue May 16, 2019 · 4 comments

Comments

@yinhaiICON
Copy link

No description provided.

@yinhaiICON yinhaiICON changed the title 图片 图片如果使用中文名称,会导致加载不到 May 16, 2019
@LancCJ
Copy link

LancCJ commented Jun 27, 2019

的确如此,资源文件夹是中文也会加载不到,估计和先前的文档路径中文问题一样

@ulivz ulivz changed the title 图片如果使用中文名称,会导致加载不到 Cannot load images which were named with non-ASCII chars Jul 15, 2019
@findix
Copy link

findix commented Nov 22, 2019

Any help?

@nanyuantingfeng
Copy link

nanyuantingfeng commented Mar 1, 2020

I also encountered this problem, because markdown-it did an encode when converting the resource path, so the resource path was not found, so I wrote a markdown-it plug-in to convert the Chinese path back, it`s work.

https://github.com/nanyuantingfeng/markdown-it-disable-url-encode

// config.js
markdown: {
extendMarkdown: md => {
md.use(require("markdown-it-disable-url-encode"));
}
}

@findix
Copy link

findix commented Mar 4, 2020

Thanks @nanyuantingfeng
It works well~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants