--- cuneiform-qt-0.1.2/mainWindow.cpp.orig 2015-02-01 16:20:46.000000000 +0800 +++ cuneiform-qt-0.1.2/mainWindow.cpp 2015-02-01 16:24:26.000000000 +0800 @@ -228,7 +228,13 @@ // Get content from the result field QString content; if( config->getFormat() == QString( "html" ) || config->getFormat() == QString( "hocr" ) ) { - content = form->result->toHtml(); + + content = "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">"; + content += "<html><head>"; + content += "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />"; + content += "<body>"; + content += form->result->toPlainText(); + content += "</body></html>"; } else { content = form->result->toPlainText(); }