JamshedVesuna / vim-markdown-preview

A light Vim plugin for previewing markdown files in a browser - without leaving Vim.
577 stars 91 forks source link

Encoding problems in Firefox #73

Open colorchestra opened 6 years ago

colorchestra commented 6 years ago

Under Firefox 52.4.0 in Debian 9, special characters in rendered HTML files aren't shown properly; it works fine in Chrome. The "View Page Info" button in Firefox tells me that the document is encoded in Windows-1252. If I add a meta tag containing "charset="UTF-8"" to the top of the HTML file, everything works perfectly.

Would it be feasible to specify the charset in the HTML file by default on every render?

mcagl commented 6 years ago

I had the same problem with firefox (my default browser), but when I added this option

let vim_markdown_preview_pandoc=1

everything worked fine (you must have pandoc installed obviously)