sanjeevk Posted November 1, 2007 Share Posted November 1, 2007 Hi anyone can help me. I have a site which needs to be run in both English and French. I have problem with the encoding (Stress problem). When i include the metatag: <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> , it works fine in most of the cases but not in all the cases . In my older database and in some other cases it doesnt work. i need my site to support both <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> and <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> I have no idea what to do . Please Help me out with this problem. Please Please. Quote Link to comment Share on other sites More sharing options...
~n[EO]n~ Posted November 1, 2007 Share Posted November 1, 2007 It should work with <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> Is your database also MySQL charset: UTF-8 Unicode (utf8) Quote Link to comment Share on other sites More sharing options...
sanjeevk Posted November 1, 2007 Author Share Posted November 1, 2007 n~ link=topic=165950.msg730160#msg730160 date=1193914538] It should work with <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> Is your database also MySQL charset: UTF-8 Unicode (utf8) Yes my database is also UTF-8 Unicode (utf8) . But what i have problem is for the admin part i need the system to support <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> but in some cases i have database which supports utf-8. for example , i have included é for é character. The problem is all the database datas are not in é for é character. In dome cases just a copy é character is used. Quote Link to comment Share on other sites More sharing options...
effigy Posted November 1, 2007 Share Posted November 1, 2007 I would convert everything to UTF-8. Perhaps you can run the data through htmlentities? Quote Link to comment Share on other sites More sharing options...
sanjeevk Posted November 2, 2007 Author Share Posted November 2, 2007 I would convert everything to UTF-8. Perhaps you can run the data through htmlentities? Thanks, i have converted all the datas to UTF-8 now . Working fine with the database and static problems but now what i have problems is with the meta tags and javascript. The meta tags are not showing the French characters and also the javascripts alerts are not showing the french languages . I had change all meta tags and javascripts variable to UTF-8 format. Quote Link to comment Share on other sites More sharing options...
effigy Posted November 2, 2007 Share Posted November 2, 2007 The meta tag is indicating UTF-8 and the French characters are encoded in UTF-8? 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.