[eluser]Ricardo SDL[/eluser]
Hi!
This is my environment:
PHP version: 5.3.3
CodeIgniter Reactor version: 2.0.1
OS: Ubuntu 10.04
Basically I want to keep some resemblance between the names of the files uploaded and the files generated in the webserver. For example:
The user upload the file "é a Summer Glau.jpg" and in the server the file "é_a_Summer_Glau.jpg" is generated. I use the default options of the Upload class like overwrite equals FALSE e remove_spaces equals TRUE.
The problem is that the file name generated is like this:
�_a_Summer_Glau.gif (invalid encoding) => on nautillus
?_a_Summer_Glau.gif => on the command line
I tried something like:
Code:
$config['file_name'] = utf8_decode($_FILES['foto']['name']);
But I'm losing the accents in the name of the file. Any ideas on how to solve this?