• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
require validation fail when passing a non-english char.

#1
[eluser]ted wong[/eluser]
Hi all, I have a validation like this:


Code:
$this->form_validation->set_rules('description',
             'lang:post_description',
             'required|min_length[1]|max_length[255]');

When I pass the english ONLY content, it works. But when I pass something like "測試" or "測試ABC",
It just don't work. And told me that : The Description field is required.
Is that true the required field support english ONLY. If yes, I need to write my own call back?
Thank you.


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.