Unicode fix: allow non-ascii characters to be displayed in tool help.

This commit is contained in:
Jeremy Goecks
2009-11-16 15:06:07 -05:00
parent e275657e3d
commit 5aea142075
+11 -5
View File
@@ -221,11 +221,17 @@ function checkUncheckAll( name, check )
%if tool.help:
<div class="toolHelp">
<div class="toolHelpBody">
%if tool.has_multiple_pages:
${tool.help_by_page[tool_state.page]}
%else:
${tool.help}
%endif
<%
if tool.has_multiple_pages:
tool_help = tool.help_by_page[tool_state.page]
else:
tool_help = tool.help
# Convert to unicode to display non-ascii characters.
if type( tool_help ) is not unicode:
tool_help = unicode( tool_help, 'utf-8')
%>
${tool_help}
</div>
</div>
%endif