Buscar en Ayuda

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Loading an external javascript with different charset with the page with Firefox

  • Sin respuestas
  • 10 tienen este problema
  • 5 visitas
more options

My page is in UTF-8 while my external javascript file is in UTF-16. I am trying to load it with the html code <script src="x" charset="utf-16"></script>, but eventually Firefox returns with error and indicating that there are illegal characters in the javascript, which is encoded as UTF-8.

Anyone has similar experience? thx in advanced.

My page is in UTF-8 while my external javascript file is in UTF-16. I am trying to load it with the html code <script src="x" charset="utf-16"></script>, but eventually Firefox returns with error and indicating that there are illegal characters in the javascript, which is encoded as UTF-8. Anyone has similar experience? thx in advanced.