开发者

pound sign in javascript

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜