encodeURIComponent
Encodes a Uniform Resource Identifier (URI) by replacing each instance of certain characters by one, two, or three escape sequences representing the UTF-8 encoding of the character.
escape and unescape
The escape and unescape functions let you encode and decode strings. The escape function returns the hexadecimal encoding of an argument in the ISO Latin character set. The unescape function returns the ASCII
string for the specified hexadecimal encoding value.
Hi Baglan,
I'm already doing that. However, in the server I must convert from one
charset to another programmaticaly.
The problem seems to be the use of "encodeURIComponent" function by prototype:
Mozilla Developer Core Javascript Guide
encodeURIComponent
Encodes a Uniform Resource Identifier (URI) by replacing each instance
of certain characters by one, two, or three escape sequences
representing the UTF-8 encoding of the character.
Replacing all occurences of "encodeURIComponent" function by "escape"
function solved the problem. The question is whether using "escape" is
worth for that.
Mozilla Developer Core Javascript Guide