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"
精彩评论