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

HTML preview is not UTF-8 #340

Closed
Louson opened this issue May 28, 2018 · 1 comment · Fixed by #350
Closed

HTML preview is not UTF-8 #340

Louson opened this issue May 28, 2018 · 1 comment · Fixed by #350

Comments

@Louson
Copy link

Louson commented May 28, 2018

If I export the md file with 'markdown-preview', the specials characters are not correctly read on my browser (firefox 60.0.1)

Expected Behavior

Export a md file containing letters with accents should be read in a browser supporting UTF-8.

Actual Behavior

The html output should support UTF-8

Steps to Reproduce

  1. Create a markdown file containing letters with accents
This is special letter é
  1. Export with 'markdown-preview' command
  2. Open with firefox

Software Versions

Markdown v2.1
Emacs 25.3.1

Possible solution

I don't know much about HTML but I guess it misses a line before the title (markdown-mode.el:markdown-add-xhtml-header-and-footer :

<meta charset=\"UTF-8\"/>

Also, I don't know why the html starts with an xml header specifing the UTF-8...

@jrblevin
Copy link
Owner

This should be fixed by #350, but please reopen if not.

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

Successfully merging a pull request may close this issue.

2 participants