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 Link to comment https://forums.phpfreaks.com/topic/216660-multiple-lanaguages-in-the-database-viewing-in-php/ 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 Link to comment https://forums.phpfreaks.com/topic/216660-multiple-lanaguages-in-the-database-viewing-in-php/#findComment-1125682 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. Link to comment https://forums.phpfreaks.com/topic/216660-multiple-lanaguages-in-the-database-viewing-in-php/#findComment-1125689 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.