CodeIgniter Forums
UTF-8 is not working - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: Model-View-Controller (https://forum.codeigniter.com/forumdisplay.php?fid=10)
+--- Thread: UTF-8 is not working (/showthread.php?tid=62135)



UTF-8 is not working - marcellohsc - 06-12-2015

Hi!

i'm having some issues with utf8 encoding in my form.

at my localhost, when i send the data(using accents: áéíóú etc) to controller, everything works fine.
at server, when i get the data using $this->input->post('example'), codeigniter gets an empty string.

how can i fix it?

ps: i think my config file it's correct
$config['charset'] = 'UTF-8';


RE: UTF-8 is not working - CroNiX - 06-12-2015

Is database set to utf-8? Is page meta charset set to utf-8? <meta charset="utf-8">


RE: UTF-8 is not working - marcellohsc - 06-13-2015

(06-12-2015, 12:11 PM)CroNiX Wrote: Is database set to utf-8? Is page meta charset set to utf-8? <meta charset="utf-8">

the problem isnt in database, because the issue happens when sending data from the view to controller.

my page is set to UTF-8.