Corey Smith
Corey Smith

Reputation: 3

Import docx file into emacs org-mode

I have been scouring the web for hours now and I haven't found a complete answer. I am wanting to convert my .org file to .docx (and docx. to .org) while maintaining the sections and tables. I have found and tried using pandoc through powershell as a tool to do this but I believe I am not doing any thing.

Here is the command I type into pandec: pandoc report7a.org -s -o report7.docx

Shows the error:

pandoc.exe: Cannot decode byte '\xfe': Data.Text.Internal.Encoding.decodeUtf8: Invalid UTF-8 stream

I have little experience with doing stuff like this.

Here is an image of the .org file I want to convert

Upvotes: 0

Views: 1390

Answers (1)

Alex Ott
Alex Ott

Reputation: 87069

I think that your editor put the byte order mark (BOM) into begin of the file. Check this post on how to do it with Emacs.

Upvotes: 3

Related Questions