On 2013-08-29 20:57, H. S. Teoh wrote: > XML files can have *any* valid encoding, including nastiness like > windows-1252 and relics like iso-8859-1. Actually, does the encoding really matters (as long as it's compatible with ASCII). Just use a range of ubytes, the parser will only be looking for characters in the ASCII table anyway. -- /Jacob Carlborg