Using the pandoc tool on Windows 11, I am trying to convert to HTML a Markdown file with Unicode characters in its name with the following command:
pandoc -f markdown_phpextra -o 'Ahoj sv─¢te.html' 'Ahoj sv─¢te.md'
But pandoc complains with the following error:
[WARNING] Could not deduce format from file extension
Defaulting to html
pandoc.exe: svÄ>te.html': openBinaryFile: does not exist (No such file or directory)
Any ideas how to make pandoc understand the filenames containing Unicode characters correctly?
CodePudding user response:
Executing the chcp 65001
command before running the pandoc
command solved the issue. Thanks @tarleb for providing this suggestion.