adam-may / hudson-tray-tracker

Automatically exported from code.google.com/p/hudson-tray-tracker
0 stars 0 forks source link

User displayed in last success/fail is not UTF-8 safe #11

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a user in SVN with an 'ÅÄÖ' in their name.
2. Check-in something that triggers a build.
3. See that the reported username is really a UTF-8 character.

Fix:
Don't call DownloadString(url) when you know that you're looking for xml
data, instead load the XmlDocument via xml.Load(url).

In my testing WebClient doesn't understand the encoding even though the
page from Hudson reports itself as UTF-8. The only way to get the correct
name was to load directly with XmlDocument.

I see that you have a cache implemented in DownloadString, but I'm sure
that you can use something similar.

Original issue reported on code.google.com by andreas.ch.magnusson@gmail.com on 14 Apr 2009 at 9:11

GoogleCodeExporter commented 9 years ago
Same thing happens with Project Name (it should be "Nature Préhistorique"

Original comment by franck.q...@gmail.com on 19 Jun 2009 at 9:59

Attachments:

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r104.

Original comment by Alexis.S...@gmail.com on 6 Nov 2009 at 1:02