Strip exotic characters from the table-sorter plugin.

This is needed under certain circumstances whenever the terminal locale
can't be determined and can't handle unicode characters.
This commit is contained in:
Adam Waldenberg 2015-02-22 00:53:38 +01:00
parent de602bb70f
commit 02b6db512b
1 changed files with 2 additions and 1 deletions

View File

@ -67,7 +67,8 @@ def output_header():
if __selected_format__ == "html" or __selected_format__ == "htmlembedded":
base = basedir.get_basedir()
html_header = __output_html_template__(base + "/html/html.header")
tablesorter_js = __get_zip_file_content__("jquery.tablesorter.min.js", "/html/jquery.tablesorter.min.js.zip")
tablesorter_js = __get_zip_file_content__("jquery.tablesorter.min.js", "/html/jquery.tablesorter.min.js.zip").encode("latin-1", "replace")
tablesorter_js = tablesorter_js.decode("utf-8", "ignore")
flot_js = __get_zip_file_content__("jquery.flot.js")
pie_js = __get_zip_file_content__("jquery.flot.pie.js")
resize_js = __get_zip_file_content__("jquery.flot.resize.js")