CodeIgniter input Post Chinese cannot be submitted

Source: Internet
Author: User
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; } 
  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.