CodeIgniter Forums
UTF-8 help - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: UTF-8 help (/showthread.php?tid=38033)



UTF-8 help - El Forum - 01-28-2011

[eluser]c77m[/eluser]
There are lots of threads related to character encoding, but I don't see any simple answers to this...

I have CI set up with the default UTF-8 character encoding, which matches my MySQL tables. In one field, I have a name, "Montañez". ActiveRecord unfortunately stores it as "Montañez".

I'm sure there's an easy fix without having to hack CI. Any help?


UTF-8 help - El Forum - 01-28-2011

[eluser]Cristian Gilè[/eluser]
http://philsturgeon.co.uk/news/2009/08/UTF-8-support-for-CodeIgniter

or, alternatively, you can grab the latest version of CI2 that provides support for UTF-8 environments.


Cristian Gilè


UTF-8 help - El Forum - 01-28-2011

[eluser]c77m[/eluser]
Awesome, thanks much for the link. I didn't have the required content-type meta tag, so adding that fixed the problem.

I'm looking forward to upgrading to CI2, but I'm holding out until it's officially released and the User Guide is updated. I've been using CI a year, but there are too many intricacies I still haven't figured out. Smile

Thanks again...