details: http://www.bx.psu.edu/hg/galaxy/rev/3d0e1bdd6ce1 changeset: 3037:3d0e1bdd6ce1 user: jeremy goecks <jeremy.goecks@emory.edu> date: Mon Nov 16 11:27:30 2009 -0500 description: Fix unicode error in data.display_info(). Fixes #226. diffstat: lib/galaxy/datatypes/data.py | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diffs (15 lines): diff -r b7c6a418c571 -r 3d0e1bdd6ce1 lib/galaxy/datatypes/data.py --- a/lib/galaxy/datatypes/data.py Mon Nov 16 10:57:31 2009 -0500 +++ b/lib/galaxy/datatypes/data.py Mon Nov 16 11:27:30 2009 -0500 @@ -160,6 +160,11 @@ info = info.replace( '\r', '<br/>' ) if info.find( '\n' ) >= 0: info = info.replace( '\n', '<br/>' ) + + # Convert to unicode to display non-ascii characters. + if type( info ) is not unicode: + info = unicode( info, 'utf-8') + return info except: return "info unavailable"