$_POST empty on utf-8 characters

Since the comments are piling up and will probably get overlooked, I am going to post some more suggestions.

Readers please keep in mind this is dealing with $_POST data values and not display of data on a web page.

This user seems to have a similar problem:

Codeigniter seems to break $_POST of ‘£’ character (Pound)

There is a report here on Bitbucket of similar:

https://bitbucket.org/ellislab/codeigniter-reactor/issue/214/problem-when-inserting-special-characters:
Removed link: EllisLabs has closed this repo to the public

Maybe adding this to your index.php will help (probably not):

ini_set('default_charset', 'UTF-8');

Double check and make sure you aren’t running any validation or prepping rules on the field. Things like url_title() will strip those characters.

Leave a Comment