I have this function inside a php file:
mysql_query("SET NAMES 'utf8'") or die(mysql_error());
mysql_query("SET CHARACTER SET 'utf8'") or die(mysql_error());
some stuff happening here,
rename($src, $dest.$cat);
Thats on the server, and is the setup I have today which works (atleast on my browsers).
Now, on my local machine (my own laptop with wampserver) this wont work unless I do this:
mysql_query("SET NAMES 'utf8'") or die(mysql_error());
mysql_query("SET CHARACTER SET 'utf8'") or die(mysql_error());
some stuff happening here
$cat=utf8_decode($category);
rename($src, $dest.$cat);
And I also have meta=utf-8
in this php file.
$cat gets its content from a mysql_query...
I would like to know the difference (why it isn't working the same way on the server and on my local machine)?
And I would like to know if this will cause problems on different users browsers, by having it the way it is