CodeIgniter Forums
Foreign characters getting trimmed - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: Foreign characters getting trimmed (/thread-53208.html)



Foreign characters getting trimmed - El Forum - 07-15-2012

[eluser]mr_prasanna[/eluser]
Hi,

What causes foreign characters to get trimmed. e.g "Löytänänkatu" becomes "Lytnnkatu" when fetched from $this->input->post('city').
Please help. Does XSS filtering affect?


Foreign characters getting trimmed - El Forum - 07-15-2012

[eluser]mr_prasanna[/eluser]
Solved. It was the charset in content-type meta tag causing this. Changed it to UTF-8 and it works like a charm!