1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/ca0daccbb90f/ Changeset: ca0daccbb90f User: dan Date: 2013-05-15 19:07:07 Summary: Enhance util.unicodify to attempt to force encoding when already an unicode object. Affected #: 1 file diff -r 69240f7da05e4ae42803b67a507103d201186306 -r ca0daccbb90f2a2eabfb5f64156a7c270cbd3eca lib/galaxy/util/__init__.py --- a/lib/galaxy/util/__init__.py +++ b/lib/galaxy/util/__init__.py @@ -422,7 +422,10 @@ Returns a unicode string or None """ if isinstance( value, unicode ): - return value + try: + return value.encode( encoding, error ) + except: + return value try: return unicode( value, encoding, error ) except: Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.