• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Unicode Support?

#1
[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!!!

#2
[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?

#3
[eluser]InsiteFX[/eluser]
You also need to set all your html web pages to utf-8

#4
[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 Big Grin
for other's who could have this problem,
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />

#5
[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:
&lt;meta http-equiv="Content-type" content="text/html; charset=utf-8" /&gt;

#6
[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');


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.