Update of /cvsroot/pythoncard/PythonCard/tools/experimentalResourceEditor/modules
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29158/tools/experimentalResourceEditor/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/experimentalResourceEditor/modules/resourceOutput.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** resourceOutput.py 24 Oct 2004 23:37:27 -0000 1.2
--- resourceOutput.py 3 Mar 2006 10:07:21 -0000 1.3
***************
*** 95,100 ****
#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)
--- 95,100 ----
#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)
|