Unicode characters stored in session doing strange behaviour :(

Posted by Sahoo under ASP.NET on 5/23/2014 | Points: 10 | Views : 478 | Status : [Member] | Replies : 6
We are storing user name in SESSION during login. When we are fetching it in another page, the unicode texts like Russion text converted to ?????.

Is there any setting need to do ? Using IIS 6

I have tried by adding below setting, but still it does not work :( <globalization requestEncoding="utf-8" responseEncoding="utf-8"/>

Any expert advice.




Responses

Posted by: Sheonarayan on: 5/23/2014 [Administrator] HonoraryPlatinum | Points: 25

Up
0
Down
What if you are storing some other string, is it the same behavior?

Regards,
Sheo Narayan
http://www.dotnetfunda.com

Sahoo, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sahoo on: 5/23/2014 [Member] Starter | Points: 25

Up
0
Down
Sheo Narayan, for normal text it is fine. This condition happens only for foreign/unicode characters

Sahoo, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sheonarayan on: 5/23/2014 [Administrator] HonoraryPlatinum | Points: 25

Up
0
Down
Foreign/unicode, is your username not in english?

Regards,
Sheo Narayan
http://www.dotnetfunda.com

Sahoo, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sahoo on: 5/26/2014 [Member] Starter | Points: 25

Up
0
Down
Sheo Narayan, yes. user name has Foreign/unicode characters.

Sahoo, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sheonarayan on: 5/26/2014 [Administrator] HonoraryPlatinum | Points: 25

Up
0
Down
Foreign/unicode characters means? Foreign language?

Regards,
Sheo Narayan
http://www.dotnetfunda.com

Sahoo, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sahoo on: 5/26/2014 [Member] Starter | Points: 25

Up
0
Down
Sheo Narayan, yes.

These are Russian,Chinese text

Sahoo, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response