I'm struggling getting a pound sign (£) back from my Ajax call.
This is the jQuery call I have
(function(d){
var js, id = 'facebook-jssdk'; if (d.getElementById(id)) {return;}
js = d.createElement('script'); js.id = id; js.async = true;
js.src = "//connect.facebook.net/en_GB/all.js";
d.getElementsByTagName('head')[0].appendChild(js);
}(document));
$.post('ajax.php?vno=' + new Date().getTime(), {
action: 'submit'
}, function(res){
if (res.status) {
alert(res.post);
FB.api('/me/feed', 'post', { message: res.post },function(){});
}
},'json');
In my PHP script, I pass back html_entity_decode("£");
but the alert shows £
.
If I change my PHP code to html_entity_decode("£");
the alert box shows nothing
How can I get the alert to show £
?