UTF-8 string not decoded correctly in AngularJS

后端 未结 2 1835
执念已碎
执念已碎 2020-12-20 12:04

I have a text input box, within a SPA built on AngularJS, for users to add a title to a printout. The input box is declared like this:



        
2条回答
  •  忘掉有多难
    2020-12-20 13:01

    Try below for encoding

    myAngApp1=document.getElementById("ItemSearch"); var uri = myAngApp1.value; var place = encodeURIComponent(uri)

提交回复
热议问题