Changeset 1040
- Timestamp:
- 05/04/2005 12:32:23 PM (4 years ago)
- Files:
-
- trunk/ui/uiwx/dGrid.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/ui/uiwx/dGrid.py
r1037 r1040 27 27 except ImportError: 28 28 _USE_DECIMAL = False 29 29 30 # wx versions < 2.6 don't have the GetDefaultPyEncoding function: 31 try: 32 defaultEncoding = wx.GetDefaultPyEncoding() 33 except AttributeError: 34 defaultEncoding = "latin-1" 30 35 31 36 … … 214 219 if isinstance(recordVal, basestring): 215 220 if recType is unicode: 216 recordVal = recordVal.encode( wx.GetDefaultPyEncoding())221 recordVal = recordVal.encode(defaultEncoding) 217 222 else: 218 223 recordVal = unicode(recordVal, encod) … … 514 519 self.listEditors = {} 515 520 # Type of encoding to use with unicode data 516 self.defaultEncoding = wx.GetDefaultPyEncoding() #"latin-1"521 self.defaultEncoding = defaultEncoding 517 522 # What color should the little sort indicator arrow be? 518 523 self.sortArrowColor = "Orange"
