Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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 correctly and page can be validated ? my page is using utf-8

thanks

like image 772
Jason Avatar asked Aug 12 '26 23:08

Jason


1 Answers

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"

like image 127
Quentin Avatar answered Aug 14 '26 14:08

Quentin



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!