on-internet
← Community

How do I "UTF-8 encode" my JavaScript files so that Google Chrome can use them in an extension?

Stack Overflow ·

I am writing a fairly simple extension for Chrome. The main graphical body of it (the part dealing with html, i.e. the front-end) works fine, but when I try to include a second JavaScript file that uses Jquery's $.ajax() function to return some info from another page to the front-end, Chrome throws the following error and won't let me load the extension: Could not load extension from "Path\to\extension". Could not load file "filename.js" for content script. It isn't UTF-8 encoded. I don't honestly know enough about UTF-8 encoding to be able to tell what would make Chrome say that about my file

Comments

Sign in or sign up to comment and upvote.

No comments yet.