Αναζήτηση στην υποστήριξη

Προσοχή στις απάτες! Δεν θα σας ζητήσουμε ποτέ να καλέσετε ή να στείλετε μήνυμα σε κάποιον αριθμό τηλεφώνου ή να μοιραστείτε προσωπικά δεδομένα. Αναφέρετε τυχόν ύποπτη δραστηριότητα μέσω της επιλογής «Αναφορά κατάχρησης».

Learn More

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 απαντήσεις
  • 5 έχουν αυτό το πρόβλημα
  • 8 προβολές
  • Τελευταία απάντηση από umar.sd.care

more options

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�)�;�

Επιλεγμένη λύση

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://
Ανάγνωση απάντησης σε πλαίσιο 👍 3

Όλες οι απαντήσεις (3)

more options

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

use Mibbit if you dont have irc client

more options

Επιλεγμένη λύση

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://
more options

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

Τροποποιήθηκε στις από το χρήστη umar.sd.care