Prohledat stránky podpory

Vyhněte se podvodům. Za účelem poskytnutí podpory vás nikdy nežádáme, abyste zavolali nebo poslali SMS na nějaké telefonní číslo nebo abyste sdělili své osobní údaje. Jakékoliv podezřelé chování nám prosím nahlaste pomocí odkazu „Nahlásit zneužití“.

Learn More

Firefox is add 'charset=UTF-8' to the content-type when using AJAX

  • 1 odpověď
  • 21 má tento problém
  • 1 zobrazení
  • Poslední odpověď od cor-el

more options

I am using XMLHttpRequest to send data to the server, and Firefox is adding 'charser=UTF-8' to the end of the content-type header attribute. I have tried to over write the content-type by adding "mypostrequest.setRequestHeader("Content-type", "application/x-www-form-urlencoded");" But 'charser=UTF-8' is still added.

This happened

Every time Firefox opened

I am using XMLHttpRequest to send data to the server, and Firefox is adding 'charser=UTF-8' to the end of the content-type header attribute. I have tried to over write the content-type by adding "mypostrequest.setRequestHeader("Content-type", "application/x-www-form-urlencoded");" But 'charser=UTF-8' is still added. == This happened == Every time Firefox opened

Všechny odpovědi (1)

more options

Try http://forums.mozillazine.org/viewtopic.php?p=6318215#p6318215

Please do not post in old topics. If you ned help then create a new post on the MozillaZine Web Development/Standards Evangelism forum. The helpers at that forum are more knowledgeable about web development issues. You need to register at the MozillaZine forum site in order to post at that forum. See http://forums.mozillazine.org/viewforum.php?f=25