Thanks for the reply Mark,
Yes, the UrlDecode method is not quite useful for those already
encapsulated string values (from raw bytes) in asp.net. However, the
UrlDecode(like many other encoding/decoding methods) belong to the
HttpUtility class which is not restricted to be used in ASP.NET application
only. You can also use it to do UrlEncode/Decode in your own application
which may need to convert some raw byte array to string format encoded
array. For example, if you're writing own http components that may need
such utility function.
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
msdnmg@microsoft.com.
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
Quote:
>From: =?Utf-8?B?TWFyaw==?= <mmodrall@nospam.nospam>
>References: <6F937A57-E486-4126-87D9-B563DDD4261F@microsoft.com>
<GEcinIjuIHA.4512@TK2MSFTNGHUB02.phx.gbl>
Quote:
>Subject: RE: get raw headers?
>Date: Tue, 20 May 2008 07:11:01 -0700
>
>Hi Bruce, Steven...
>
>Several Microsoft whitepapers on performance optimization for .net say to
>steer clear of comparatively wasteful operations like String.Split() for
all
Quote:
>the extra objects they create putting burden on the garbage collector. I
had
Quote:
>a 1.1 app for reading log files that used Split a lot, and I found with
>Perfmon that it was spending 35-45% of the time in garbage collection. I
>re-implemented to avoid .Split() and performance improved about 30%.
>
>UrlDecode() had a ranged overload but only for the raw bytes, which seems
>kind of odd given how awkward it is to *get* raw bytes of anything you'd
want
Quote:
>to UrlDecode().
>
>Thanks
>Mark
>
>"Steven Cheng [MSFT]" wrote:
>