Wednesday, March 07, 2007

HttpUtility.UrlEncode, fails again

Bitten a couple months ago by the fact that System.Web.HttpUtility.UrlEncode does NOT encode ticks/single-quotes ('). How lovely. I filed a bug, someone at MS closed it out almost a month later with no explanation. It's current state is "won't fix".

Bitten again by another bug in the same function. What a shocking surprise. UrlEncode does not escape/encode the plus (+). It should encode it as %2B, but no, it doesn't, it just leaves it in the string.

Hosers.

2 comments:

Mike Heath said...

Servers you right for using .NET.

RR said...

Yeah, well, there are some things you can't avoide when you take a job -- like some disagreeable decisions made before you arrived.