Click here to Skip to main content
15,917,795 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Getting a users IP address Pin
windhopper22-Jul-08 1:47
windhopper22-Jul-08 1:47 
GeneralRe: Getting a users IP address Pin
Sherin Iranimose22-Jul-08 2:11
Sherin Iranimose22-Jul-08 2:11 
QuestionDeploy a WebApplication Pin
pinna_hari22-Jul-08 0:42
pinna_hari22-Jul-08 0:42 
AnswerRe: Deploy a WebApplication Pin
Sherin Iranimose22-Jul-08 1:34
Sherin Iranimose22-Jul-08 1:34 
GeneralInserts with a GridView Pin
Brady Kelly22-Jul-08 0:40
Brady Kelly22-Jul-08 0:40 
GeneralRe: Inserts with a GridView Pin
Paddy Boyd22-Jul-08 2:37
Paddy Boyd22-Jul-08 2:37 
GeneralRe: Inserts with a GridView Pin
Brady Kelly22-Jul-08 2:41
Brady Kelly22-Jul-08 2:41 
GeneralRe: Inserts with a GridView Pin
Paddy Boyd22-Jul-08 2:49
Paddy Boyd22-Jul-08 2:49 
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 

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.