Re: Special Characters in Query String
- From: Kim Bach Petersen <incognito@xxxxxxx>
- Date: Sun, 08 May 2005 17:07:15 +0200
Joerg Jooss wrote:
strQuery = HttpUtility.UrlEncode(strQuery, System.Text.Encoding.Default)
I suggest using a more web-friendly encoding than some Windows specific default, e.g. ISO-8859-1 or UTF-8.
Obviously UTF-8 is to be preferred and in most cases this is the actual default value returned by System.Text.Encoding.Default.
Still, in my experience, one needs to use the default rather than explicitly choosing UTF-8 if the application is to run on _any_ webhotel without encountering encoding mismatch problems, at least with querystrings.
Kim :o) .
- Follow-Ups:
- Re: Special Characters in Query String
- From: Juan T. Llibre
- Re: Special Characters in Query String
- From: Joerg Jooss
- Re: Special Characters in Query String
- References:
- Special Characters in Query String
- From: SMG
- Re: Special Characters in Query String
- From: Kim Bach Petersen
- Re: Special Characters in Query String
- From: Joerg Jooss
- Special Characters in Query String
- Prev by Date: Re: Q from a novice: how do you implement windows menus in ASP.NET
- Next by Date: Re: Q from a novice: how do you implement windows menus in ASP.NET
- Previous by thread: Re: Special Characters in Query String
- Next by thread: Re: Special Characters in Query String
- Index(es):
Loading