I have a form in Html that I’m submitting with jQuer.ajax to a Perl script that uses Mechanize to process the form on an URL and everything works well, except for the fact that when I see the info that’s sent to the receiving URL, the character (’) get’s stored as (â), I’m not sure what’s the best way to handle it, I tried JavaScript’s escape(), encodeURI(), replacing (’) from jQuery before sending everything through ajax, but I’m not sure if it get’s treated as the other single quote ('). I can use a JavaScript/jQuery solution or do something with Perl, I’m just not sure how should I handle it.
I have a form in Html that I’m submitting with jQuer.ajax to a Perl
Share
«
’» is RIGHT SINGLE QUOTATION MARK (U+2019). Its UTF-8 encoding isE2 80 99.If you treat
E2 80 99as iso-8859-1 or as Unicode code points, you getThis is what you are seeing. You have an encoding problem.