Fix get_txt to assume unicode results.

This commit is contained in:
William Grant
2011-06-03 23:13:45 +10:00
parent 472750c0db
commit 382d9157c5
+1 -1
View File
@@ -65,4 +65,4 @@ def get_txt(name):
unicode_name = name.decode('ascii') unicode_name = name.decode('ascii')
except UnicodeDecodeError: except UnicodeDecodeError:
return None return None
return _get_txt(unicode_name).decode('utf-8') return _get_txt(unicode_name).encode('utf-8')