crosswire / xiphos

Xiphos is a Bible study tool written for Linux, UNIX, and Windows using GTK, offering a rich and featureful environment for reading, study, and research using modules from The SWORD Project and elsewhere.
http://xiphos.org
GNU General Public License v2.0
208 stars 51 forks source link

Search export to html should set content type to UTF-8 #389

Closed xiphos-bug-inhaler closed 8 years ago

xiphos-bug-inhaler commented 14 years ago

When doing an HTML export from the search results tab of the advanced search dialog, xiphos 3.1.2-mozembed running on Ubuntu Karmic, Greek text cannot be read when the resulting HTML file is loaded into Firefox (see screenshot). This is a result of the Greek text being encoded as UTF-8, but no character encoding being declared in the HTML.

The problem is easily solved by adding a section:

before the body.

You can see the difference in the two attached files SearchResults.fixed.html and SearchResults.orig.html. SearchResults.orig.html is a result of running a search in the Septuagint module for "lemma:G5426." SearchResults.fixed.html is a hand-corrected version.

I expect that this problem also happens when doing an export from any language that is not represented in the Latin-1 character set.

Reported by: e_d_moyer

Original Ticket: gnomesword/bugs/388

xiphos-bug-inhaler commented 14 years ago

The results of searching LXX for lemma:G5426 and then exporting to HTML

Original comment by: e_d_moyer

xiphos-bug-inhaler commented 14 years ago

A screenshot of Firefox running under Ubuntu and viewing SearchResults.orig.html

Original comment by: e_d_moyer

xiphos-bug-inhaler commented 14 years ago

A hand-repaired version of SearchResults.orig.html that correctly displays the Greek

Original comment by: e_d_moyer

xiphos-bug-inhaler commented 14 years ago

fixed in -r3770. unfortunately, we released 3.1.3 just this week and binary packages for it are just becoming available. you'll have to correct your export saves manually until 3.2 comes out, which we hope we will be by summer or thereabouts.

Original comment by: karlkleinpaste