Update of /cvsroot/pythoncard/PythonCard/tools/oneEditor/modules
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29158/tools/oneEditor/modules
Modified Files:
resourceOutput.py
Log Message:
Removed coercion to ascii to enable proper unicode support
Index: resourceOutput.py
===================================================================
RCS file: /cvsroot/pythoncard/PythonCard/tools/oneEditor/modules/resourceOutput.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** resourceOutput.py 4 Oct 2004 19:16:44 -0000 1.2
--- resourceOutput.py 3 Mar 2006 10:07:21 -0000 1.3
***************
*** 93,98 ****
#print key, value, type(value)
if isinstance(value, (str, unicode)):
! if isinstance(value, unicode):
! value = value.encode('ascii', 'ignore')
# need to escape strings
#pprint.pprint(value)
--- 93,98 ----
#print key, value, type(value)
if isinstance(value, (str, unicode)):
! # if isinstance(value, unicode):
! # value = value.encode('ascii', 'ignore')
# need to escape strings
#pprint.pprint(value)
|