Problem with special characters and multilanguages

usenet111

New Member
Please i have asked this question before, hopin to get responses this timeI created a simple comment wall that submits using ajax.Using javascript i collect user input:\[code\]var sharetxt = encodeURIComponent(document.getElementById("cw_share_txt").value);\[/code\]then pass it to a php page, on the php page, i collect the passed data:\[code\]$text=nl2br(htmlentities(trim(utf8_decode($_POST["txt"]))));\[/code\]Encoding of the php page above:\[code\]header("Content-Type: text/xml; charset=utf-8");\[/code\]My problem is that [*]the wall doesnt still support multi languages (displays as ???? and causes my xml not to work)[*]i still problems with some special characters (displays as ?
 
Top