Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues with umlauts #75

Open
dahanbn opened this issue Dec 16, 2017 · 2 comments
Open

Issues with umlauts #75

dahanbn opened this issue Dec 16, 2017 · 2 comments

Comments

@dahanbn
Copy link

dahanbn commented Dec 16, 2017

I have some issues with using pandoc-mode for files or directories with umlauts.

If I convert the file TestUmlaute_äöü.md via pandoc-mode to docx than I get a file named TestUmlaute_äöü.docx.

If I put a file into a directory with an umlaut than I get the following error message:

pandoc.exe: c:/.../Uml\307\317ut//TestbriefDaniel.docx: openBinaryFile: does not exist (No such file or directory)

Here was the file TestbriefDaniel.md in a directory with the name Umläut.

Because both cases work with running pandoc from SublimeText I guess, somehow there is something wrong with the encoding of the file names and how Emacs or pandoc-mode calls pandoc.exe.

I use pandoc 2.0.2 64 bit on Windows 10 64 bit, with Emacs 25.3.1 64-bit. Pandoc-mode 20171204.1441.

@joostkremers
Copy link
Owner

I'm stumped by this issue. I don't have this issue myself, but I'm on Linux and I use utf-8 everywhere. At some point in the process, the utf-8 encoded names are interpreted as if they are latin1. I can't really imagine where this would happen.

Could you post the contents of the pandoc-mode output buffer (which is called " *Pandoc output*", without the double quotes but with a space at the beginning)? That might help me understand what's going on.

@dahanbn
Copy link
Author

dahanbn commented Dec 19, 2017

There isn't much output in the *Pandoc output* buffer:

pandoc.exe: d:/\307mlaut//pandoc-umlaut-test.docx: openBinaryFile: does not exist (No such file or directory)

How do you create the filename?

Pandoc log shows:

==================================================
Tue Dec 19 14:07:04 2017

Calling pandoc with:

pandoc --read=markdown --write=docx --output=d:/Ümlaut//pandoc-umlaut-test.docx

pandoc-umlaut-test.md: Error in pandoc process

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants