codimd icon indicating copy to clipboard operation
codimd copied to clipboard

Raw HTML Export breaks umlauts

Open niccokunzmann opened this issue 6 years ago • 3 comments

Reproduction

When I add Umlauts like "Ü" in "ÜBUNG" to the markdown file, And I click Export -> RAW HTML, And I open the HTML file, I can see "ÜBUNG". I would like to see "ÜBUNG".

Error Analysis

I can see

<meta http-equiv="content-type" content="text/html; charset=windows-1252">

in the exported file.

Possible Solution

For me, it works with utf-8.

<meta http-equiv="content-type" content="text/html; charset=utf-8">

Related Issues:

  • https://github.com/hackmdio/codimd/issues/135

Related Code:

https://github.com/hackmdio/codimd/blob/cb1e00d1d149c7a331e9d37cc73927a6aa5c7cf6/public/js/extra.js#L472 In the code, I do not know where the HTML head come from.

niccokunzmann avatar Nov 05 '19 11:11 niccokunzmann

Same here. I run CodiMD via docker image.

elearningdienst avatar Nov 06 '19 19:11 elearningdienst

I can confirm this error to be present in docker image 2.0.1. HTML export works, but "Raw HTML export" does show the error as described.

nmaas87 avatar Apr 20 '20 13:04 nmaas87

This bug is also present in the archive export feature (export all notes) on HackMD service.

marscher avatar Jan 17 '23 18:01 marscher