diff --git a/lib/tool_shed/util/shed_util_common.py b/lib/tool_shed/util/shed_util_common.py index 7ae9e9dcd81..658ab6a014a 100644 --- a/lib/tool_shed/util/shed_util_common.py +++ b/lib/tool_shed/util/shed_util_common.py @@ -1214,7 +1214,7 @@ def to_safe_string( text, to_html=True ): if text: if to_html: try: - escaped_text = text.decode( 'utf-8' ) + escaped_text = unicodify( text ) escaped_text = escaped_text.encode( 'ascii', 'ignore' ) escaped_text = str( markupsafe.escape( escaped_text ) ) except UnicodeDecodeError, e: