View Single Post
Old 10-13-2010, 09:50 AM   #2
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,860
Karma: 6120478
Join Date: Nov 2009
Device: many
Hi,

The "typical" utf-8 heading for an xhtml file inside a epub (one of many) looks like the following:

<?xml version="1.0" encoding="utf-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

In fact, the above was generated by Sigil itself since it uses utf-8 as it xhtml encoding.


This line in your question

> <link rel="stylesheet" href="../Styles/Stylesheet.css" type="text/css; charset=UTF-8" />


just says that the encoding of the separate stylesheet is utf-8, not that the .xhtml file itself is.


All of that said, unless the content of the xhtml is actually utf-8 byte values/strings then it still will not display properly. Many good text editors are smart enough to find the encoding info or let you set it before editing text within it.

Hope this helps,

KevinH
KevinH is offline   Reply With Quote