CodeIgniter input Post Chinese cannot be submitted
Cannot submit Chinese via $this->input->post (' name ')
If Name= ' en ' is able to submit
If Name= ' Chinese ' is not submitted
------Solution--------------------
It is possible that the PHP page you are receiving is inconsistent with the encoding of the HTML page that sent the data.
Var_dump ($_post); Look at the mess no garbled
------Solution--------------------
discuss
Reference:
It is possible that the PHP page you are receiving is inconsistent with the encoding of the HTML page that sent the data.
Var_dump ($_post); Look at the mess no garbled
Var_dump ($_post) name=> no data
------Solution--------------------
It's really your problem, CI only supports the English Form Name property. Otherwise it will be reported disallowed Key characters.
The solution is to change to English, or: http://www.kukaka.org/home/content/576
Methods in the input.php
PHP code
function _clean_input_keys ($STR) { if (! Preg_match ("/^[a-z0-9:_/-]+$/i", $str)) {exit (' disallowed Key characters. ') ); }//Clean UTF-8 if supported if (utf8_enabled = = = TRUE) { $str = $this->uni->clean_string ($STR); } return $STR; }