phpmady Posted August 18, 2010 Share Posted August 18, 2010 Hi, I am trying to update the database with the arabic characters using utf8, when am trying with firefox no problem in updating also i check with database values are in utf8 format. But at the same time working with IE, values are not updating as utf8 format. Looking for answer confused..hope.. Thanks Quote Link to comment https://forums.phpfreaks.com/topic/211062-help-me-in-utf8/ Share on other sites More sharing options...
phpmady Posted August 18, 2010 Author Share Posted August 18, 2010 Hi, In firefox values are stored as شش In IE values are stored as ÔÔ Ô Thanks Hi, I am trying to update the database with the arabic characters using utf8, when am trying with firefox no problem in updating also i check with database values are in utf8 format. But at the same time working with IE, values are not updating as utf8 format. Looking for answer confused..hope.. Thanks Quote Link to comment https://forums.phpfreaks.com/topic/211062-help-me-in-utf8/#findComment-1100759 Share on other sites More sharing options...
phpology Posted August 18, 2010 Share Posted August 18, 2010 after you have opened your connection to your database, run this query also if you are not doing it already: mysql_query("SET NAMES 'utf8'"); //should only call once during life of connection. Also assuming you got the meta tag in placed to: <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> Quote Link to comment https://forums.phpfreaks.com/topic/211062-help-me-in-utf8/#findComment-1100781 Share on other sites More sharing options...
phpmady Posted August 18, 2010 Author Share Posted August 18, 2010 Hi, Thanks for your reply, when am trying to make the mysql_query("SET NAMES 'utf8'"); my arabic characters are not updating, its showing empty value. Thanks after you have opened your connection to your database, run this query also if you are not doing it already: mysql_query("SET NAMES 'utf8'"); //should only call once during life of connection. Also assuming you got the meta tag in placed to: <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> Quote Link to comment https://forums.phpfreaks.com/topic/211062-help-me-in-utf8/#findComment-1100807 Share on other sites More sharing options...
phpology Posted August 18, 2010 Share Posted August 18, 2010 check out this example when I searched google "set names mysql" http://forums.mysql.com/read.php?103,244307,244307 Quote Link to comment https://forums.phpfreaks.com/topic/211062-help-me-in-utf8/#findComment-1100816 Share on other sites More sharing options...
phpmady Posted August 19, 2010 Author Share Posted August 19, 2010 I tried with mysql_query("SET NAMES 'utf8'"); but no change, is there anything wrong with ie in utf8 supporting, Quote Link to comment https://forums.phpfreaks.com/topic/211062-help-me-in-utf8/#findComment-1101374 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.