[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 12:12:47 +0100

Bhuvaneswaran A wrote:
> On Fri, 2009-12-04 at 10:22 +0000, Julian Foad wrote:
>
>> Branko Čibej wrote:
>>
>> Or just escape the "special" characters.
>>
>
> Good point. I used to encode using utf-8, but it doesn't seem to
> detect/encode these characters, resulting in unchanged behaviour. I used
> something like:
>
> reason = u'%s'.encode('utf-8') % reason
> reason = unicode(reason, 'utf-8')
>

That's because ASCII control characters are valid UTF-8 sequences,
there's no encoding to be done in this case.

-- Brane
Received on 2009-12-04 12:13:22 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.