locked
Ajax.resquest Language text is not handling in IE RRS feed

  • Question

  • User213108198 posted

    Hi,

     this is my code 

    function Answer_Selected(queryString, questionID, formName, columnName) {
    var FormElements = getFormElements1($('form1'));
    FormElements += "SourceQuestionID|" + questionID;
    var baseUrl = 'SetFormValue.aspx';
    var url = baseUrl + "?SourceQuestionID=" + questionID + "&" + FormElements;
    new Ajax.Request( url,{
    type: 'GET',
    cache: false,
    contentType: "application/xml; charset=utf-8",
    dataType: "xml",
    onSuccess: function (transport) {
    var Totalresult = transport.responseText;
    var resultList = Totalresult.split('^');
    for (i = 0; i < resultList.length; i++) {
    var result = resultList[i];
    var qid = result.substring(0, result.indexOf("|"));
    var Value = result.substring(result.indexOf("|") + 1, result.length);
    $(qid).value = Value;
    }
    }
    });
    }

    ..bellow is my c# code 

    string Params = Request.QueryString["Params"];

    .From Ui a dropdown value is comming as Kyllä but in c# i am getting that as Kyll�

    So please help me what to do?????????????

    Its urgent

    Thursday, May 1, 2014 5:59 AM

Answers

  • User1918509225 posted

    Hi Prava29,

    please right click on your web page ,check Encoding if it is  (Unicode)UFT-8 .

    For i don't know ä ,need to which kind of encoding,you can try to set the consistent encoding with your language.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, May 7, 2014 5:01 AM

All replies

  • User1918509225 posted

    Hi Prava29,

    Based on my understanding on your code ,here are my suggestion:

    First, in your ajax url,you don’t have a param named  ”Params”.

    How did you get the value when call the url by ajax.

    Second ,if  you can use ajax to call the url , I think it may matter with the encoding  ,please try to set your contentType like below  in request:

    contentType: "application/x-www-form-urlencoded;charset=utf-8 "
    

    Hope it can help you.

    Best Regards,

    Kevin Shen.

    Friday, May 2, 2014 4:50 AM
  • User213108198 posted

    Hi ,

     I used what ever u give content type also but still its returnning same .

    by the way Params is there on FormElements  elements ,its comming from getFormElements1($('form1'));

    So there is nothing to eorry about that.

    So kindly tell what to do in IE 6-upper version.

    please.

    manuallly i can replace that single value ä  but what for others .becoz we can not handle it mannually.

    Tuesday, May 6, 2014 3:46 AM
  • User1918509225 posted

    Hi Prava29,

    please right click on your web page ,check Encoding if it is  (Unicode)UFT-8 .

    For i don't know ä ,need to which kind of encoding,you can try to set the consistent encoding with your language.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, May 7, 2014 5:01 AM