Problem with cookie and htmencoding (danish characters)

G

Guest

Hi

I have a search page (aspx) where users have the option to "remember" their
search criterias. I use a a cookie to store these criterias. No problem in
storing and retreiving these values from the cookie, but when users enter one
of the special danish characters (æøå) then thise characters are displayed
with their associated escape character (e.g. "ø" is represented as "ø"). The
values are correct in the cookie. I retrieve the values like this:

Me.label1.Text = Server.HtmlEncode(Request.Cookies("CookieName")("Value1"))

Any idea how to fix this - I have tried to put "codepage=65001" in the @page
directive.

Thanks
Peter
 

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

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,575
Members
45,053
Latest member
billing-software

Latest Threads

Top