image icon indicating copy to clipboard operation
image copied to clipboard

cannot handle non-ascii characters in image file names

Open MCredbear opened this issue 9 months ago • 8 comments

For example, I have content/test.md and public/UPcase测试.png, in content/test.md, ![](/UPcase测试.png) doesn't work, but ![](/upcase.png) works.

Originally posted by @MCredbear in #3252

MCredbear avatar Mar 17 '25 12:03 MCredbear

Would you be able to provide a reproduction? 🙏

More info

Why do I need to provide a reproduction?

Reproductions make it possible for us to triage and fix issues quickly with a relatively small team. It helps us discover the source of the problem, and also can reveal assumptions you or we might be making.

What will happen?

If you've provided a reproduction, we'll remove the label and try to reproduce the issue. If we can, we'll mark it as a bug and prioritise it based on its severity and how many people we think it might affect.

If needs reproduction labeled issues don't receive any substantial activity (e.g., new comments featuring a reproduction link), we'll close them. That's not because we don't care! At any point, feel free to comment with a reproduction and we'll reopen it.

How can I create a reproduction?

We have a template for starting with a minimal reproduction:

👉 https://stackblitz.com/github/nuxt/image/tree/main/example

A public GitHub repository is also perfect. 👌

Please ensure that the reproduction is as minimal as possible. See more details in our guide.

You might also find these other articles interesting and/or helpful:

github-actions[bot] avatar Mar 18 '25 22:03 github-actions[bot]

Reproduction is already in the first post.

MCredbear avatar Mar 19 '25 02:03 MCredbear

I could see no reproduction link in that issue

danielroe avatar Mar 19 '25 10:03 danielroe

I mean, "For example, I have content/test.md and public/UPcase测试.png, in content/test.md, ![](/UPcase测试.png) doesn't work, but ![](/upcase.png) works." is the reproduction.

MCredbear avatar Mar 19 '25 11:03 MCredbear

@MCredbear

The reproduction suggested by Daniel is a link to a stackblitz project where an issue can be easily reproduced and visible. It helps us - maintainers to find the issue and try to resolve it.

Without it, we are not aware of the environment you use (like project version, dependencies, custom functions etc) that all can impact the project and cause the issue.

Please provide the reproduction link so that we can help :)

Baroshem avatar Mar 19 '25 14:03 Baroshem

OK, maybe this one https://github.com/MCredbear/redbear-blog, images under /public/articles/images/ can reproduce this issue.

MCredbear avatar Mar 19 '25 17:03 MCredbear

Is this issue even related to Nuxt Image? You are just using an image placed in public folder with the usage of Nuxt Content and the Nuxt Image module is commented out. I think the issue could be elsewhere.

I don't know how to help as I am not proficient with different language files :(

Baroshem avatar Mar 20 '25 08:03 Baroshem

You are just using an image placed in public folder with the usage of Nuxt Content and the Nuxt Image module is commented out.

I commented Nuxt Image module in order to make my code work..... Uncomment it reproduces this.

MCredbear avatar Mar 20 '25 08:03 MCredbear