GNOME Bugzilla – Bug 316849
undefined html encoding
Last modified: 2018-05-22 12:43:42 UTC
In generated html form docbook encoding is missing. Many non-english pages are displayed wrong because encoding is not always detected correct by web browser. In file db2html-division.xsl should be added line after title: <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
Created attachment 53811 [details] [review] proposed patch Patch that makes the changes described in the bug report.
Comment on attachment 53811 [details] [review] proposed patch This line needs to go in to the actual HTML output, not nested in a comment in the XSLT. Also, db2html actually generates XHTML, so the media typ should be application/xhtml+xml.
Created attachment 161359 [details] [review] Proposed patch First time helping out here. Please let me know if I can do anything different to improve my (MEAGER!) contribution.
Can someone commit and review the change in the patch above? If more work needs to be done I'm up for it.
Need to set the content type for HTML or XHTML based on whether $html.xhtml is true, and if we're going to declare that the files are UTF-8, then we better make sure they actually are by specifying the encoding attribute on exsl:document.
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/yelp-xsl/issues/6.