-
17 Dec 2009 7:33 AM #1
Setting encoding in calls to Ext.Ajax.Request.
Setting encoding in calls to Ext.Ajax.Request.
Hi,
I have an HTML page that is UTF-8 encoded.
I am using Ext.Ajax.request to asynchronously submit to the server. However, my requirement is that the encoding should not be sent for certain submissions.Code:<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
I tried using the following but to no avail:
andCode:headers: {'Content-Type':'text/html; charset=ISO-8859-1'}
Both of the above cause the rest of the parameters to be wiped out (the server does not receive the rest of the parameters that I send in the call to Ext.Ajax.request in the params config option).Code:Ext.Ajax.defaultHeaders = {'Content-Type':'text/html; charset=ISO-8859-1'}
How can I set the character encoding to something other than UTF-8 in my calls to Ext.Ajax.request()?
Thanks.
-
18 Dec 2009 1:52 AM #2
Whenever I use Ext.Ajax.Request, the character encoding that the server receives is UTF-8. On the other hand, whenever there is a full submit, the character encoding that the server receives is "null".
Why is there a difference in the encoding between the two forms of submit?
I do not want to set the encoding of the request to UTF-8 while using Ext.Ajax.Request. Is there anyway that I can achieve it?
-
21 Dec 2009 6:10 AM #3
I tried using XMLHttpRequest and it is working fine.
Does Ext.Ajax.request by default encode the request in UTF-8?
-
22 Dec 2009 9:42 PM #4
-
6 Dec 2012 2:34 PM #5
I have the same problem...
data to the server arrive with strange encoding...


Reply With Quote