|
想在校验之后转换文字编码,用了以下两种方法,好像都不对.怎么写正确?
$this->form_validation->set_rules('email', 'Email', 'trim|required|mb_convert_encoding("email","UTF-8","SJIS")');
$this->form_validation->set_rules('email', 'Email', 'trim|required|mb_convert_encoding($1,"UTF-8","SJIS")'); |
|