I am writing a code to post html-based blog posts through jquery/ajax to php to amazon s3.
I first urlencode the post with this function from php.js - http://phpjs.org/functions/urlencode:573 then send it to a php which stores the content as is to s3. If i read this file naked, it looks fine with slashed for special characters like " ' ", " " ", etc. which im able to remove with stripslashes.
Now, the problem, if I echo these s3 contents after retrieving with tarzan/CloudFusion library, it echos charactres like ’, “ for " ' ", " " " respectively , but if i send this content through ajax/json encoding it looks all fine.
What exactly am I doing wrong? can someone also shed a light on encodings related in this case or in general.
Thanks for help!