Re: Cookie Encoding/sharing ASP.Net and ASP

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



On Sep 26, 10:52 am, Stephan Bomholt
<StephanBomh...@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
Hi,

i have a little problem with cookie encoding. Our ASP.Net web-app uses
UTF-8/Unicode Encoding as default. Now we write an cookie with for example
the username in it. In Germany names can contain umlauts like äöüß...

Another web-app, written in ASP from another developer, read out the cookie
and have a problem with umlauts. They uses the ISO-8859-1 encoding, so there
are cryptic signs instead of the umlauts.

How can i save the username in the cookie with another encoding? I have
tried things like Encoding.Convert(unicode,iso, encodedBytes) but it doesn´t
work.

Thanks for any hint....

Stephan

Hallo Stephan

according to this KB article http://support.microsoft.com/kb/313282
ASP cookies are encoded in UrlEncode format, so maybe the problem is
that you would need to decode the data using UrlDecode in ASP.NET? Try
this

.



Relevant Pages

  • Re: Trying to set a cookie within a python script
    ... a string literal is one of the encodings i use to create a string ... you've got a numeric literal that's three characters long, and a name that's six characters long. ... A given file needs to have a single encoding, ... And it is alwsy wrong because the cookie never gets set. ...
    (comp.lang.python)
  • Re: Cookie Encoding/sharing ASP.Net and ASP
    ... SB> i have a little problem with cookie encoding. ... SB> cookie and have a problem with umlauts. ... SB> How can i save the username in the cookie with another encoding? ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Cookie Encoding/sharing ASP.Net and ASP
    ... now i have the name url-encoded in the cookie, ... The ASP-Developer says, ... UTF-8/Unicode Encoding as default. ... tried things like Encoding.Convert(unicode,iso, encodedBytes) but it doesn´t ...
    (microsoft.public.dotnet.framework.aspnet)
  • RE: CSS, CSS & let me give you some more CSS
    ... ('binary' encoding is not supported, ... >More interesting are cases where you can actually inject it into a>cookie that the site uses to make it persist. ... This email was sent through the free email service at http://www.anonymous.to/ ...
    (Vuln-Dev)