wikmd icon indicating copy to clipboard operation
wikmd copied to clipboard

wikmd on Windows: Bug when converting markdown in internal editor

Open domasofan opened this issue 3 years ago • 2 comments

Hi,

It seems there is an issue when converting written markdown in the internal editor. Tested on a German/European Windows version. It seems it saved the md file as ANSI/ISO-8859-1 instead of UTF-8. So Pandoc seems to complain about that:

INFO:wiki:Saving >>> 'Test' ... INFO:wiki:Converting to HTML with pandoc >>> 'wiki\Test.md' ... INFO:wiki:New git commit >>> Add page 'Test' on 2022-04-23 01:48:26.530440 INFO:wiki:Pandoc died with exitcode "92" during conversion: b'UTF-8 decoding error in wiki\Test.md at byte offset 31 (f6).\r\nThe input must be a UTF-8 encoded text.\r\n'

domasofan avatar Apr 22 '22 23:04 domasofan

I'll try to solve this at the end of the week. The encoding does sometimes a little weird... can you give a little more detail? Do you use docker, a virtualenv or native?

Linbreux avatar Apr 23 '22 14:04 Linbreux

@domasofan Please, try my fork and tell me if it fixes your problem.

Mik3Rizzo avatar Feb 27 '23 21:02 Mik3Rizzo