I'm getting a textarea value with jQuery and using ajax to post it to the server.
I'm using escape(textarea.val()) to encode the URL in jQuery.
In my PHP script, I'm using rawurldecode to convert it back.
This works for every character on my keyboard except the euro sign (€). Instead, it returns the hex code (%u20AC).
I have no idea how to fix this, as far as I know all my charset settings are in order.
Thanks
Your jQuery script is not sending data through according to RFC3986.
%u20AC
is not URL encoding.