Archive for November, 2012

illegal XML characters

Thursday, November 1st, 2012

Sometimes I dump binary data into XML. Being aware of illegal bytes (0-8,B-C,F-1F), I encode everything in base64. But there is a nice alernative way, just revealed by Roger Costello in the xml-dev maillist:

Move any illegal characters into the Private Use Area: for each illegal character add hex E000.