php - upload files with strange chars when names have accents -
im problem strange chars when inserts on database , solve searching solutions in stackoverflow with: pdo::mysql_attr_init_command => "set names utf8".
but, im having problems, when upload files, example, if upload file name "1º class", saved on computer name: "1º class", have problems when use accents on uploaded files. dont understand why happening , none solution this.
do know how can solve situations?
check content-type of page:
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
make sure page coded in uft-8 (eg. notepad++)
Comments
Post a Comment