images with non-ascii names don't appear in dev mode
See original GitHub issueCan you reproduce the problem with latest npm?
Yes.
Description
In dev mode, images in src which are imported and have non-ascii characters in their names are not loaded. The problem does not appear in production builds
Expected behavior
Tell us what you think should happen.
Actual behavior
Tell us what actually happens.
Environment
Run these commands in the project folder and fill in their results:
-
npm ls react-scripts
(if you haven’t ejected):react-scripts@0.8.5
-
node -v
:v7.1.0
-
npm -v
:4.0.2
Then, specify:
- Operating system: Windows 10
- Browser and version: Edge, Firefox, Chrome
Reproducible Demo
https://github.com/vgrigoriu/diacriticsInFilenames/
Just yarn start
to see the issue. There are two identical images, one named Petiole.jpg
(which works just fine) and one named Pétiole.jpg
which doesn’t load. I noticed that this doesn’t happen for smaller images, which are converted to data urls.
Issue Analytics
- State:
- Created 7 years ago
- Comments:18 (11 by maintainers)
Top Results From Across the Web
webp fails to generate with non-ascii-named image - Drupal
Webp fails to deliver images with Unicode names (Arabic in my case). ... the locale: Useful for a fast fix, but I don't...
Read more >find files with non-ascii chars in file name - Stack Overflow
This seems to work for me in both default and posix-extended mode: LC_COLLATE=C find . -regex '.*[^ -~].*'. There could be locale-related ...
Read more >How to display special non-ASCII Unicode characters in ...
I tried saving the above title string as a text file in Notepad++ and then reopened it. No change. I then tried copying...
Read more >Non-ascii char in file name - Development - Image.sc Forum
The filename contains non-ascii characters (März). ImageJ throws an exception because the ä inside the xml is converted to a different ...
Read more >Unable to upload an image with non-ascii (Chinese) characters
Update: If the image's filename contains ONLY Chinese characters I got the same error as before. However, if it has any ascii character...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I confirmed that it is indeed fixed with webpack-dev-middleware 1.10.1. Thanks everyone for your help.
Okay, found the issue in webpack-dev-middleware and released a new version. Thanks @vgrigoriu for providing a repository, that really helped with narrowing down the issue quickly (I wish everyone would do that 😄 ).