Re: Special Characters in Query String



re:
> Obviously UTF-8 is to be preferred

Why ?



Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
======================

"Kim Bach Petersen" <incognito@xxxxxxx> wrote in message
news:ePpEe%239UFHA.3176@xxxxxxxxxxxxxxxxxxxxxxx
> 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)


.



Relevant Pages

  • Re: Disadvantages of using windows-1252 codepage?
    ... off to use utf-8 or iso, but a lot of our static and db content is not ... content and preferrably use utf-8 if we can. ... Joerg Jooss schrieb: ... platforms. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: How to UTF-8 encode a string?
    ... remote service doesn't recognize them as being UTF-8. ... req.ContentEncoding = encoding; ... Joerg Jooss ...
    (microsoft.public.dotnet.languages.csharp)

Loading