[Chicago] unicode -> xml

Massimo Di Pierro mdipierro at cs.depaul.edu
Thu Feb 19 17:23:56 CET 2009


problem. Given

 >>> a=chr(245).decode('latin-1').encode('utf8','xmlcharref')
 >>> print a
õ

how do I translate this into valid escaped XML "&U+xxxx;" in the  
general case?

Masimo


More information about the Chicago mailing list