Conversion of Unicode to characters in JavaScript confirm window

I have a button like below and the JavaScript function like below function clicked(s) { confirm( s); } The above code is working fine. But when i add the attribute from backend to the button like, Button1.Attributes.Add("OnClick", "clicked('Récupération de frigorigène')"); its displaying the string as it is (The Unicode is not getting converted in confirm box). What is the reason for this!!. And I am not getting a solution for this.
I maybe wrong but I think the & char has been converted to & on the client side, because you set it from the server-side and it should be converted into the correct html entities.

以上就是Conversion of Unicode to characters in JavaScript confirm window的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » JavaScript 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准