Jump to content
Sign in to follow this  
gal007

How to force plugin charset/encoding?

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

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...