Bonsoir,

si je cherche à renommer le nom d'un fichier comportant le caractère "à" en "a" en faisant :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
$path=dirname(__FILE__).'/../../upload1/image/';
...
$file=str_replace("à","a",$file);
rename($path.$memofile,$path.$file);
, il me le renomme en rajoutant un espace derrière le a ("a "). Comment se fait-ce et comment éviter ça ?