Windows 10 reached EOS (end of support) on October 14, 2025. If you are on Windows 10, see this article.

Rechercher dans l’assistance

Évitez les escroqueries à l’assistance. Nous ne vous demanderons jamais d’appeler ou d’envoyer un SMS à un numéro de téléphone ou de partager des informations personnelles. Veuillez signaler toute activité suspecte en utilisant l’option « Signaler un abus ».

En savoir plus

I created a Firefox extension, was working fine until I updated to new version 15.0.1, and on very first line it is giving SyntaxError: illegal character : ��w

  • 3 réponses
  • 5 ont ce problème
  • 297 vues
  • Dernière réponse par umar.sd.care
  • Résolu

The code on first line is window.addEventListener("load", function(e) { onLoad(e); }, false); but if I open file from Error message link it shows this ��w�i�n�d�o�w�.�a�d�d�E�v�e�n�t�L�i�s�t�e�n�e�r�(�"�l�o�a�d�"�,� �f�u�n�c�t�i�o�n�(�e�)� �{� �o�n�L�o�a�d�(�e�)�;� �}�,� �f�a�l�s�e�)�;�

The code on first line is window.addEventListener("load", function(e) { onLoad(e); }, false); but if I open file from Error message link it shows this ��w�i�n�d�o�w�.�a�d�d�E�v�e�n�t�L�i�s�t�e�n�e�r�(�"�l�o�a�d�"�,� �f�u�n�c�t�i�o�n�(�e�)� �{� �o�n�L�o�a�d�(�e�)�;� �}�,� �f�a�l�s�e�)�;�

Solution choisie

You may have saved files in an UTF-16 encoding instead of UTF-8, so check that.
You can open such extension files in Firefox via their chrome url.

  • chrome://
Lire cette réponse dans son contexte 👍 3

Toutes les réponses (3)

This is Firefox support forum. if you need addon related help feel free to ask question in addons.mozilla.org forum

you can also get help from #AMO irc channel

  • irc://irc.mozilla.org/amo

use Mibbit if you dont have irc client

Solution choisie

You may have saved files in an UTF-16 encoding instead of UTF-8, so check that.
You can open such extension files in Firefox via their chrome url.

  • chrome://

Thank you, I already saved the js file using a java script editor, and that solved the problem.

Modifié le par umar.sd.care