[Greasemonkey] Charset problems (nsIScriptableUnicodeConverter)
lists at atrus.org
Thu Aug 4 21:30:58 EDT 2005
-----BEGIN PGP SIGNED MESSAGE-----
If you are getting errors like the following:
Error : uncaught exception: [Exception... "Component returned failure
[nsIScriptableUnicodeConverter.ConvertToUnicode]" nsresult: "0x80004005
(NS_ERROR_FAILURE)" location: "JS frame ::
chrome://greasemonkey/content/utils.js :: getContents :: line 160"
The problem is simple:
Your script is in one of the many single-byte character sets floating
around that "extend" ASCII; they often cause the conversion to a
unicode string to fail because GM assumes your script is in UTF-8
(when it isn't). One simple solution is to remove characters that
aren't in ascii (accented characters and symbols are usually a
problem). Another option is to convert the file to UTF-8, which is
what 0.5 is expecting.
Most good text editors can do this, but I've also made a little web
service to help:
This will be fixed in the next release.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
-----END PGP SIGNATURE-----
More information about the Greasemonkey