var $link = $("#frametest").contents().find(".eod-topbox").find('a');
var variable2= $("#frametest").contents().find(".eod-topbox").find("h3").find(".hidetitle").html();
var variable1= $link.attr('href');
$.post('insert.php', {variable1: link_address, variable2: heading},
function(data){$("#message").html(data);});
alert(variable2);
alert(variable1);
In this script, alert
are showing hindi text properly and showing link also. But when I try to save this variable2
to the database, it saves something like this
कांगà¥à¤°à¥‡à¤¸ से बढ़ती AA...
in the message div
hindi text is displaying properly and when I just copy hindi text to database manually there is no problem.
Please help somebody.