The <meta charset="utf-8"/> tag chokes EPUB validators

Larry Kollar's Avatar

Larry Kollar

17 Feb, 2017 04:29 AM

Subject says it all. It's easy enough to remove, but replacing it with the following tag would convey the same info and make Epubcheck happy:

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

I've started converting my Scrivener projects to use MultiMarkdown, because the HTML is so much cleaner. I haven't decided whether to use MMD directly, and import the HTML into a skeleton project in Sigil, or use Pandoc to directly generate the EPUB. Both methods require some finishing touches, but both only need a matter of minutes to produce excellent results.

  1. Support Staff 1 Posted by fletcher on 18 Feb, 2017 02:13 PM

    fletcher's Avatar
  2. Support Staff 2 Posted by fletcher on 18 Feb, 2017 02:15 PM

    fletcher's Avatar

    Actually, just did quick google check to refresh my memory, and the way you suggest is the out of date way. The way MMD currently uses is the correct/current way, as I understand it.

  3. fletcher closed this discussion on 18 Feb, 2017 02:15 PM.

  4. Larry Kollar re-opened this discussion on 18 Feb, 2017 06:55 PM

  5. 3 Posted by Larry Kollar on 18 Feb, 2017 06:55 PM

    Larry Kollar's Avatar

    Sounds right, but the EPUB spec hasn't caught up yet. Is it possible to
    have a switch to change the output? I'll take a swing at coding it myself
    if you want.

  6. Support Staff 4 Posted by fletcher on 18 Feb, 2017 07:09 PM

    fletcher's Avatar

    I would recommend this:

    1. Modifying MMD-5 for the change would be easy -- just change the
    current string to the string you desire.

    2. I am going to revisit EPUB more generally in MMD-6. Depending on
    what I can find in regards to zip libraries, etc., I *might* build it in
    to MMD itself. The current approach relies on external tools (e.g.
    <https://github.com/fletcher/MMD-ePub>)

    F-

  7. fletcher closed this discussion on 22 Aug, 2017 01:20 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

11 Dec, 2022 09:57 PM
11 Dec, 2022 07:57 PM
26 Sep, 2022 02:40 AM
21 Jul, 2022 10:22 AM
11 Jan, 2022 02:33 PM

Recent Articles