php - HTML and MySQL problems using latin characters -
i trying create first web page using yii, php , mysql. have problems using latin characters. when write these characters can't show them correctly, example:
id: 1 username: josé migueleditado password: contraseñajosemi
besides, have same problem when try store characters in db. mean, when complete form field , click on submit, if 1 of theses fields have latin characters, db store text of field latin character. example:
if write "maría" in form field db store "mar" inthe corresponding register.
i know have problem charset don't know why. in db array of main.php have:
'db'=>array( ... 'charset' => 'utf8', ),
besides in registers of db use "varchar(100) utf8_general_ci". in document main.php have:
return array( 'basepath'=>dirname(__file__).directory_separator.'..', 'name'=>'prueba', 'language'=>'es', 'sourcelanguage'=>'en', 'charset'=>'utf-8',
i using notepad++ edit , create php documents, , codification of these documents utf-8 sin bom.
please, need help, don't know error. me?
thank much.
Comments
Post a Comment