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