lynxus Posted October 23, 2010 Share Posted October 23, 2010 Im having a terrible issue saving the persian language into my DB and bringing it back into a PHP echo. All i get is: ���� Rather than the actual text that it should show. I have a form that submits the text to a UTF8-Unicode DB table. A then have a php doc that reads that table and echos to the document. However it just comes out as ���� The document is set to UTF-8 and PHP sends the UTF-8 header. Does anyone know what im doing wrong? This only seems to happen when using IE Meant to look like : ل لينوكس دلخواه قابل نصب بوده But instead just shows ?????????????? Thanks G Quote Link to comment Share on other sites More sharing options...
lynxus Posted October 23, 2010 Author Share Posted October 23, 2010 Everything is set to utf 8 on ALL my documents. <?php header("Content-type: text/html; charset=utf-8");?> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> Database is utf-8unicode ci FF and Gchrome WORK FINE! Its just IE that wont send the data properly. Always get ????????? I noticed it ALSO cant send the damn £ character. What is wrong, all other browsers are fine, Typical IE buggering everything up. -G Quote Link to comment Share on other sites More sharing options...
lynxus Posted October 23, 2010 Author Share Posted October 23, 2010 Typical, After HOURS!!!! of looking, Ive found the issue. In IE when using utf-8 and ajax you need: message = encodeURIComponent(message); This appears to fix it completely. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.