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

Popular posts from this blog

c++ - OpenCV Error: Assertion failed <scn == 3 ::scn == 4> in unknown function, -

php - render data via PDO::FETCH_FUNC vs loop -

The canvas has been tainted by cross-origin data in chrome only -