Unicode Support? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Unicode Support? (/showthread.php?tid=52918) |
Unicode Support? - El Forum - 07-02-2012 [eluser]nagata[/eluser] Not really related to CI, but I Need help with making my forum supporting Unicode, so that russian users could freely speak on russian there. Yes, I have my DB table's and field's configed to utf8_unicode_ci so any help to make it support it? Ps. Just checked DB, it saves properly, means it outputs it all wrong, so yeah... Help please!!! Unicode Support? - El Forum - 07-02-2012 [eluser]cheungj[/eluser] [quote author="nagata" date="1341256694"]Not really related to CI, but I Need help with making my forum supporting Unicode, so that russian users could freely speak on russian there. Yes, I have my DB table's and field's configed to utf8_unicode_ci so any help to make it support it? Ps. Just checked DB, it saves properly, means it outputs it all wrong, so yeah... Help please!!![/quote] It's such a nightmare dealing with encoding! I think you need to be a little bit more specific as to what the problem is. Have you checked your application/config/database.php file to check that the encoding matches the Russian characters? Unicode Support? - El Forum - 07-02-2012 [eluser]InsiteFX[/eluser] You also need to set all your html web pages to utf-8 Unicode Support? - El Forum - 07-03-2012 [eluser]nagata[/eluser] I have found a simple solution to this problem, I set a meta tag in head of main html tamplate with chatset utf8 and it worked for other's who could have this problem, <meta http-equiv="Content-type" content="text/html; charset=utf-8" /> Unicode Support? - El Forum - 07-03-2012 [eluser]cheungj[/eluser] Glad you got it working! Just in case somebody in the future is wondering where <i>nagata</i> set the meta tag, it's in the <b>view</b> Code: <meta http-equiv="Content-type" content="text/html; charset=utf-8" /> Unicode Support? - El Forum - 07-03-2012 [eluser]LuckyFella73[/eluser] Sometime it's even nessesary to set the header additionaly to the meta tag: Code: header('Content-Type: text/html; charset=UTF-8'); |