Jquery ignores encoding ISO-8859-1

前端 未结 2 669
名媛妹妹
名媛妹妹 2020-11-29 10:24

I have a website which apperently removes the correct encoding (ISO-8859-1) from a string and sends it wrong.

I have this encoding specified in my HTML



        
2条回答
  •  有刺的猬
    2020-11-29 11:07

    According to the jQuery.ajax() contentType documentation:

    Data will always be transmitted to the server using UTF-8 charset; you must decode this appropriately on the server side."

提交回复
热议问题