Click here to Skip to main content
15,893,622 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionhow to read inpox +.net with c# Pin
sugunavathysubramanian21-Jul-08 23:32
sugunavathysubramanian21-Jul-08 23:32 
AnswerRe: how to read inpox +.net with c# Pin
eyeseetee21-Jul-08 23:52
eyeseetee21-Jul-08 23:52 
GeneralRe: how to read inpox +.net with c# Pin
sugunavathysubramanian22-Jul-08 0:03
sugunavathysubramanian22-Jul-08 0:03 
GeneralRe: how to read inpox +.net with c# Pin
sugunavathysubramanian22-Jul-08 0:08
sugunavathysubramanian22-Jul-08 0:08 
GeneralRe: how to read inpox +.net with c# Pin
eyeseetee22-Jul-08 0:26
eyeseetee22-Jul-08 0:26 
GeneralRe: how to read inpox +.net with c# Pin
sugunavathysubramanian22-Jul-08 0:41
sugunavathysubramanian22-Jul-08 0:41 
GeneralRe: how to read inpox +.net with c# Pin
J4amieC22-Jul-08 1:28
J4amieC22-Jul-08 1:28 
QuestionCharacter Encoding Problem ASP.NET [modified] Pin
Cape Town Developer21-Jul-08 22:36
Cape Town Developer21-Jul-08 22:36 
Hi all im stuck and really cant solve this one here goes...

In asp ive got the following asp page that dumps a cookie with following name example "cronjé" when i read the name it reads fine after adding the nessary encoding type see below.

Dim Name, Result
Name = "cronjé"

Response.charset="utf-8" ' // important dont omit this.
Response.Cookies("TestCookie").Expires = Now + 60
Response.Cookies("TestCookie")("test") = "1"
Response.Cookies("TestCookie")("shopperName") = Name
Response.Cookies("TestCookie").Domain = "www.cookiemonster.com"
Result = Request.Cookies("TestCookie")("shopperName")
Response.Write(Result)


Output : "cronjé" this works fine as it dumps the cookie and reads it correctly no problem here.
Using ie cookie viewer the value looks like this "shopperName=cronjé"



My problem:

Im maintaing a asp.net website that uses this cookie, when it reads it it does not display the name correctly.



private void ReadASPCookie()
   {
       HttpCookie c = Request.Cookies["TestCookie"];
       if (c != null)
           lblName.Text = c.Values["shopperName"];
   }


the output displays the name as "cronj%C3%A9" i dont understand why its doing this Frown | :(
i even tried doing the following with no result.

in the web.config i added the following encoding. still nothing Frown | :(

<globalization
   fileEncoding="utf-16"
   requestEncoding="utf-16"
   responseEncoding="utf-16"
  />


i even tried setting the Response.Charset = "utf-8"; still nothing Frown | :(

Can someone plz help me ?

Wisdom is often meant as the ability and desire to make choices that can gain approval in a long-term examination by many people.

modified on Tuesday, July 22, 2008 4:43 AM

AnswerRe: Character Encoding Problem ASP.NET Pin
NeverHeardOfMe22-Jul-08 0:00
NeverHeardOfMe22-Jul-08 0:00 
AnswerRe: Character Encoding Problem ASP.NET Pin
Cape Town Developer22-Jul-08 0:00
Cape Town Developer22-Jul-08 0:00 
QuestionApplication does not work inside the IIS?? Pin
obarahmeh21-Jul-08 22:19
obarahmeh21-Jul-08 22:19 
AnswerRe: Application does not work inside the IIS?? Pin
eyeseetee21-Jul-08 23:44
eyeseetee21-Jul-08 23:44 
Question[Message Deleted] Pin
umeshdaiya21-Jul-08 21:43
umeshdaiya21-Jul-08 21:43 
AnswerRe: cybercafe software Pin
eyeseetee21-Jul-08 22:06
eyeseetee21-Jul-08 22:06 
AnswerRe: cybercafe software Pin
N a v a n e e t h21-Jul-08 22:08
N a v a n e e t h21-Jul-08 22:08 
QuestionHTTP Request Error Pin
chanzeb21-Jul-08 21:12
chanzeb21-Jul-08 21:12 
AnswerRe: HTTP Request Error Pin
Sam Xavier22-Jul-08 21:18
Sam Xavier22-Jul-08 21:18 
Questionhow to use crystal report in asp.net 2005? Pin
BalasubramanianK21-Jul-08 19:38
BalasubramanianK21-Jul-08 19:38 
QuestionHow to work with Crystal Reports in asp.net Pin
BalasubramanianK21-Jul-08 18:52
BalasubramanianK21-Jul-08 18:52 
AnswerRe: How to work with Crystal Reports in asp.net Pin
sepel21-Jul-08 23:43
sepel21-Jul-08 23:43 
QuestionProblem to display data from database visullay inside table control . Pin
Rameez Raja21-Jul-08 16:53
Rameez Raja21-Jul-08 16:53 
QuestionStorage of String constants Pin
scottgp21-Jul-08 13:53
professionalscottgp21-Jul-08 13:53 
AnswerRe: Storage of String constants Pin
N a v a n e e t h21-Jul-08 18:08
N a v a n e e t h21-Jul-08 18:08 
Questioncustom control visibility Pin
kjosh21-Jul-08 13:39
kjosh21-Jul-08 13:39 
QuestionPassword Text Box Pin
mrkeivan21-Jul-08 10:52
mrkeivan21-Jul-08 10:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.