Welcome Guest Search | Active Topics | Sign In | Register

Globalization and CallbackPanel Options
Patrik
Posted: Monday, February 25, 2008 12:06:00 AM
Rank: Member
Groups: Member

Joined: 1/10/2008
Posts: 26
Hi,

The callbackPanel seems not able to handle responseEncoding of iso-8859-1. I get the following exception:

Quote:

The callback on UpdatePanel1 has failed because the server did not recognize this callback and processed it as a normal request.


The error occurrs when a swedish character is written to a label inside the CallbackPanel.

The web.config has the following globalization settings:
Code: XML
<globalization requestEncoding="iso-8859-1" responseEncoding="iso-8859-1" culture="sv-SE" uiCulture="sv-SE"/>


The problem is solved by changing to UTF-8. Can you please explain why it do not work with the iso setting which is a normal setting for westen european countries?

Thanks / Patrik
eo_support
Posted: Monday, February 25, 2008 7:11:02 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,098
Hi Patrik,

This is a restriction that applies to all AJAX solutions, including MS's ASP.NET AJAX. The issue is caused by the client side function that encodes the form input data. The function is implemented by the browser and it always uses UTF-8. So when the server uses another encoding other than UTF-8 to decode it, you would get garbage data. As AJAX gets more and more popular, I would imagine that major browsers would improve this function to support other encodings, as soon as that is available, we should be able to support other encodings.

Thanks


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.