开发者

pound sign in javascript

开发者 https://www.devze.com 2022-12-27 14:48 出处:网络
I wanna constrain to input special signs like £ ¬ ¦ in javascript,but they are always displayed in��� on Page source. How can i let them display correc开发者_Python百科tly and page can be valida

I wanna constrain to input special signs like £ ¬ ¦ in javascript,but they are always displayed in ��� on Page source. How can i let them display correc开发者_Python百科tly and page can be validated ? my page is using utf-8

thanks


Make sure that:

  • You really are using UTF-8 for the page
  • You are using UTF-8 for the JS
  • Your HTTP headers say you are using UTF-8
  • Any <meta> tags you have which mention an encoding say UTF-8

If you can't confirm all of those, you can use: "\u00A3"

0

精彩评论

暂无评论...
验证码 换一张
取 消