My version of HedgeDoc is: 1.10.2-ls157 (linuxserver.io docker version)
What I expected to happen:
-
When I upload or copy&paste an image, the markdown is displayed as follows:

-
Images that have already been uploaded are displayed correctly in the preview.
What actually happened:
I have been using hedgedoc for a few years now, but only sporadically. So far everything has worked fine.
Today I noticed when uploading images that this no longer works. Also, images that have already been inserted are no longer displayed. I can only upload jpg files, these are then also displayed in the preview.
When I upload PNG images, the Markdown editor shows 
. The images are not displayed in the preview.
I get the following error message in the Docker log file:
2025-02-21T17:46:37.694Z error: uncaughtException: The "windows-1252" encoding is not supported
RangeError [ERR_ENCODING_NOT_SUPPORTED]: The "windows-1252" encoding is not supported
at #prepareConverter (node:internal/encoding:433:15)
at new TextDecoder (node:internal/encoding:425:31)
at new StringType (file:///app/hedgedoc/node_modules/token-types/lib/index.js:386:28)
at readChunkHeader (file:///app/hedgedoc/node_modules/file-type/core.js:1173:38)
at async Object.detectConfident [as detect] (file:///app/hedgedoc/node_modules/file-type/core.js:1178:19)
at async FileTypeParser.fromTokenizer (file:///app/hedgedoc/node_modules/file-type/core.js:195:21)
at async FileTypeParser.fromFile (file:///app/hedgedoc/node_modules/file-type/index.js:23:11)
at async checkUploadType (/app/hedgedoc/lib/web/imageRouter/index.js:21:23)
at async /app/hedgedoc/lib/web/imageRouter/index.js:92:18
2025-02-21T17:46:37.695Z error: An uncaught exception has occured.
2025-02-21T17:46:37.695Z error: The "windows-1252" encoding is not supported
2025-02-21T17:46:37.695Z error: Process will exit now.
(node:256) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
2025-02-21T17:46:39.081Z info: All migrations performed successfully
2025-02-21T17:46:39.409Z info: HTTP Server listening at 0.0.0.0:3000
2025-02-21T17:46:39.813Z info: 127.0.0.1 - - [21/Feb/2025:17:46:39 +0000] "GET /_health HTTP/1.1" 200 14 "-" "curl/8.12.0"
2025-02-21T17:46:40.091Z info: deserializeUser: ebf50073-391a-4773-9a85-af51226f9405
I already tried:
- I try different type of images
- setup the docker and the mariadb completely new (new instance)