Encoding problem with cookies

N

nicknack

Hello,
I'm trying to read data from a cookie (In hebrew) but I got just
garbage.

The read and write are like this:
myCookie["aa"] = ServerEncode(TxtBox1.Text);
TxtBox1.Text = Server.HtmlDecode(Request.Cookies["myCookie"]["aa"]) ;

I tried all the combination of decode and encode in the read and write
but the result is the same.

When I'm opening the cookie in notepad its look right and the data is
in hebrew.
Also - when I'm running the application on my local pc its look good
and it read the cookie in hebrew.
Only on the server it can't read it well but I don't see any diffrence
between my pc and the server.

I'm using fw2, c#.

Thanks!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Cookies will not expire (noob question) 4
cookies not persisting 2
cookies 1
problem with cookies 3
Cookies during error handling 1
Timing problem 4
Cookies 1
Cookies Count 2

Members online

No members online now.

Forum statistics

Threads
473,777
Messages
2,569,604
Members
45,228
Latest member
MikeMichal

Latest Threads

Top