question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

images with non-ascii names don't appear in dev mode

See original GitHub issue

Can 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:

  1. npm ls react-scripts (if you haven’t ejected):

    react-scripts@0.8.5

  2. node -v:

    v7.1.0

  3. npm -v:

    4.0.2

Then, specify:

  1. Operating system: Windows 10
  2. 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:closed
  • Created 7 years ago
  • Comments:18 (11 by maintainers)

github_iconTop GitHub Comments

2reactions
vgrigoriucommented, Feb 19, 2017

I confirmed that it is indeed fixed with webpack-dev-middleware 1.10.1. Thanks everyone for your help.

1reaction
SpaceK33zcommented, Feb 18, 2017

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 😄 ).

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found