facebook / facebook/docusaurus

`docusaurus serve` crashes if filename contains non ASCII-Characters

オープン
#10,665 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る
bug external
主要言語
TypeScript
スター
66.2k
フォーク
10k
平均マージ
1日 3時間
マージ済み PR(30日)
52

説明

### Have you read the Contributing Guidelines on issues?

- [X] I have read the [Contributing Guidelines on issues](https://github.com/facebook/docusaurus/blob/main/CONTRIBUTING.md#issues).

### Prerequisites

- [X] I'm using the latest version of Docusaurus.
- [X] I have tried the `npm run clear` or `yarn clear` command.
- [X] I have tried `rm -rf node_modules yarn.lock package-lock.json` and re-installing packages.
- [X] I have tried creating a repro with https://new.docusaurus.io.
- [X] I have read the console error message carefully (if applicable).

### Description

Hi,

I have a markdown page that conatins an image. The filename of the image contains german special characters (umlauts) like äöü. When I open the page then the server crashes.

Maybe this is related to the issue #8124

Please find the details below.

Can you please fix it?

Best regards
Frank

### Reproducible demo

_No response_

### Steps to reproduce

Create a markdown page that links to an existing image with filename image_äöü.png
Here is an example:

```markdown
# Test 123

![test](image_äöü.png)
```
run
```npm run build```
```npm run serve```

Click on the page in the browser

### Expected behavior

The image will be shown.

### Actual behavior

The page is shown, without the image and the server crashes with the following error:

![image](https://github.com/user-attachments/assets/d0a88963-9953-4bdb-8b07-ade055c30fce)

![image](https://github.com/user-attachments/assets/18cc6a22-d71f-4830-960c-197de5c303d4)

### Your environment

- Docusaurus version used: 3.6.1
- Environment name and version ( Chrome 130, Node.js v22.11.0):
- Operating system and version (e.g. Windows 11):

### Self-service

- [ ] I'd be willing to fix this bug myself.

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。