[Greasemonkey] New to greasemonkey - unicode character problems

Lenny Domnitser ldrhcp at gmail.com
Wed Oct 11 06:00:17 PDT 2006


On 10/11/06, gm-ml <gm-ml at sunny-net.ne.jp> wrote:
> I have also tried saving the chracters/phrase to a unicode text file
> while attempting to use a hex editor to determine the hex values of the
> two byte character encodings, which I then plug into the ansi
> greasemonkey script ("\x<hex codes for chracters/phrase>" : "translation
> of chracters/phrase", ).  The result is that the chracters/phrase is not
> translated.

Instead of using '\xHH\xHH' to escape characters, try '\uHHHH', which
refers to a Unicode code point, rather than just bytes. Hope that
helps.


More information about the Greasemonkey mailing list