Jump to content

How to force plugin charset/encoding?


gal007

Recommended Posts

Hi! I'm having a trouble with my mobile plugin: it shows me the new elements added by scripting with a different charset of the page. E.g. I can read "cuadrúpedo" but the same word in my plugin show "cuadr¡pedo".I tryed writing the next line to the beginning of my plugin, but it didn't work:Code:

document.getElementsByTagName("html")[0].setAttribute("lang", "es");

Then, I wrote a "converter function" which replaces the special characters with unicode, like the next line, bub it didn't work.Code:

str.replace( /ú/g, "/xfa־" );

What can I do? confused.gif

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...