![]() |
form valiadation with other language - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: form valiadation with other language (/showthread.php?tid=44035) |
form valiadation with other language - El Forum - 07-31-2011 [eluser]Unknown[/eluser] Hi My site is in french and I have a problem with the form validation; If I type a special a french accent (like "à") in my input on my form, it automatically call an error: the field is required... as if I didn't type anything... I'm pretty sure that the problem comes from the accent but I don't know were I can set the default behavior to accept these accents! Thanks Hubert form valiadation with other language - El Forum - 08-01-2011 [eluser]Unknown[/eluser] Hi. The webpage and the files are encoded in UTF-8? If you make a test typing echo $this->input->post (); before the form_validation test the data appears correctly? And sorry for my english form valiadation with other language - El Forum - 08-01-2011 [eluser]Zaher Ghaibeh[/eluser] you have to extend the form_validation class to overwrite the validations rules that you use to accept your FR chars. and i think those problems can be found in a validations rules like alpha , alpha_num ... etc .. Code: function alpha($str) |