473,508 Members | 2,074 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Cookies in Framework 2.0

I have migrated a website from Framework 1.1 to 2.0.

I have a cookie that contains a string value. When the string contains
international characters it is not displayed correct when reading the cookie.
For example "vägvisare" becomes "vägvisare" wich is wrong.

This works in Framework 2.0.
--
ASP.NET Developer
Nov 19 '05 #1
2 977
Make sure to use UTF-8 as encoding

--
Daniel Fisher(lennybacon)
http://www.lennybacon.com
"Niclas" <Ni****@discussions.microsoft.com> wrote in message
news:EC**********************************@microsof t.com...
I have migrated a website from Framework 1.1 to 2.0.

I have a cookie that contains a string value. When the string contains
international characters it is not displayed correct when reading the
cookie.
For example "vägvisare" becomes "vägvisare" wich is wrong.

This works in Framework 2.0.
--
ASP.NET Developer

Nov 19 '05 #2
I have solved the problem. I needed to add:

responseHeaderEncoding = "ISO-8859-1"

to the globalization section of Web.config
/Niclas
"Daniel Fisher(lennybacon)" wrote:
Make sure to use UTF-8 as encoding

--
Daniel Fisher(lennybacon)
http://www.lennybacon.com
"Niclas" <Ni****@discussions.microsoft.com> wrote in message
news:EC**********************************@microsof t.com...
I have migrated a website from Framework 1.1 to 2.0.

I have a cookie that contains a string value. When the string contains
international characters it is not displayed correct when reading the
cookie.
For example "vägvisare" becomes "vägvisare" wich is wrong.

This works in Framework 2.0.
--
ASP.NET Developer


Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
6034
by: Robert V. Hanson | last post by:
If you have per user information that you want to store in session and the setting in web.config is set to cookieless=false so you are intending on using cookies, the user's browser is set to not...
1
5955
by: Michal A. Valasek | last post by:
Hello, I have problem deleting cookies and cookies values (using framework version 1.1 on W2003). When I try to remove entire cookie, by calling Response.Cookies.Remove("Test"), nothing...
3
3820
by: Joey Powell | last post by:
This message was originally posted to the aspnet.security newsgroup, but no one there has ever heard of this before. That is why I am posting this message here, so that more people will see it... ...
2
1567
by: | last post by:
While I was learning about baking cookies in ASP.NET, I also ran across this interesting article that outlined a few bombs to watch out for when using cookies in ASP.NET: ...
0
541
by: dawson | last post by:
I started off by trying to use the HttpCapabilitiesBase.Cookies Property (Note: This property is new in the .NET Framework version 2.0) however it kept on returning true even when I disabled...
0
7225
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7124
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7326
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
7046
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7498
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
3195
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1558
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
766
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
418
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.