Changeset 401:15ad3c16ee11 for src/mlx/util.py
- Timestamp:
- 12/27/12 08:04:59 (11 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/util.py
r373 r401 3 3 import time 4 4 import sys 5 import codecs 5 6 6 7 #------------------------------------------------------------------------------ … … 165 166 166 167 secondaryInstallation="secondary" in sys.argv 168 169 #------------------------------------------------------------------------------ 170 171 _utf8decoder = codecs.getdecoder("utf-8") 172 173 def utf2unicode(text): 174 """Convert the given text from UTF-8 encoding to unicode.""" 175 return unicode(_utf8decoder(text)[0])
Note:
See TracChangeset
for help on using the changeset viewer.