[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [PATCH] Handle special characters in Junit report

From: Branko Čibej <brane_at_xbc.nu>
Date: Fri, 04 Dec 2009 15:26:37 +0100

Julian Foad wrote:
> I searched on the web and didn't find a really really simple way to
> escape a set of characters. I think something like
>
> for c in chars_to_remove:
> data = data.replace(c, '%%%0x' % ord(c))
>
> would do it.
>

Please read what I wrote earlier. Second, this is URL escaping, not XML
quoting. But first, there is no way to represent such control chars in
XML. Only CR and LF are valid according the the XML spec. Others are
not; and you can't use character references, e.g., &#27; to represent
ESC. That's not valid XML.

-- Brane
Received on 2009-12-04 15:27:19 CET

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.