Hybrid View

  1. #1
    Ext User
    Join Date
    Oct 2007
    Posts
    66
    Vote Rating
    0
    shr1975 is on a distinguished road

      0  

    Question 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.

    Code:
    <meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
    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.

    I tried using the following but to no avail:
    Code:
    headers: {'Content-Type':'text/html; charset=ISO-8859-1'}
    and

    Code:
    Ext.Ajax.defaultHeaders = {'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).

    How can I set the character encoding to something other than UTF-8 in my calls to Ext.Ajax.request()?


    Thanks.

  2. #2
    Ext User
    Join Date
    Oct 2007
    Posts
    66
    Vote Rating
    0
    shr1975 is on a distinguished road

      0  

    Default


    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?

  3. #3
    Ext User
    Join Date
    Oct 2007
    Posts
    66
    Vote Rating
    0
    shr1975 is on a distinguished road

      0  

    Default


    I tried using XMLHttpRequest and it is working fine.

    Does Ext.Ajax.request by default encode the request in UTF-8?

  4. #4
    Ext User
    Join Date
    Oct 2007
    Posts
    66
    Vote Rating
    0
    shr1975 is on a distinguished road

      0  

    Default


    Is this a bug in Ext?

  5. #5
    Sencha User
    Join Date
    May 2012
    Location
    rome
    Posts
    62
    Vote Rating
    0
    alexdran is on a distinguished road

      0  

    Default


    I have the same problem...
    data to the server arrive with strange encoding...

Thread Participants: 1

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar