Changeset 528:f8a5f63eafc0 in documentViewer for SrvTxtUtils.py
- Timestamp:
- Apr 13, 2012, 2:55:16 PM (12 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
SrvTxtUtils.py
r514 r528 12 12 13 13 14 srvTxtUtilsVersion = "1.4 "14 srvTxtUtilsVersion = "1.4.1" 15 15 16 16 def getInt(number, default=0): … … 38 38 return s.decode('latin-1') 39 39 else: 40 return s40 return unicode(s) 41 41 42 42 def utf8ify(s): … … 48 48 return s 49 49 else: 50 return s.encode('utf-8')50 return unicode(s).encode('utf-8') 51 51 52 52 def getText(node, recursive=0):
Note: See TracChangeset
for help on using the changeset viewer.