From: Andy T. <an...@us...> - 2006-03-03 10:07:25
|
Update of /cvsroot/pythoncard/PythonCard/tools/resourceEditor/modules In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29158/tools/resourceEditor/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/resourceEditor/modules/resourceOutput.py,v retrieving revision 1.33 retrieving revision 1.34 diff -C2 -d -r1.33 -r1.34 *** resourceOutput.py 27 Oct 2005 22:58:00 -0000 1.33 --- resourceOutput.py 3 Mar 2006 10:07:21 -0000 1.34 *************** *** 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) |