so if you are encoding characters for use with a URL, you need:

encodeURIComponent()

example:

escape("INGLÉS") ->INGL%C9S
encodeURIComponent("INGLÉS") -> INGL%C3%89S

you will note that %C9 is not a value UTF-8 character.
I’m using this function to encode the values from a form to put into a URL.

Cameron

Leave a Reply