Solving this issue of sending arabic characters using ajax

前端 未结 4 2142
臣服心动
臣服心动 2021-01-05 14:02

I\'m using an AJAX form in order to send data to another page named \'show.php\'. Here is the source of pages:

form.html



        
4条回答
  •  说谎
    说谎 (楼主)
    2021-01-05 14:27

    I think this may help:

    self.xmlHttpReq.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8');

    The above code should set the character set of the AJAX Request to UTF-8.

提交回复
热议问题