title: Codeigniter upload file and save name with special caracters
body: <p>I'm saving images in a folder to be sent by the user. But if i save image with special characters (ç, á, ã, etc.), the system does not recognize, and save the file name wrong. </p>
  
  <p>Example: file name: <code>cação.png</code> and save: <code>caÃ § Ã £ o</code></p>
  
  <h3>Controller:</h3>
  
  <pre><code>public function save_image(){
      $config['upload_path'] = 'images/uploaded/';
      $config['allowed_types'] = 'gif|jpg|png|jpeg';
      $config['max_size'] = '300';
      $config['max_width'] = '1024';
      $config['max_height'] = '768';
  
      $this-&gt;load-&gt;library('upload', $config);
      $sub_data = array(
          'error' =&gt; '',
          'result' =&gt; ''
      );
  
      if( ! $this-&gt;upload-&gt;do_upload())
      {
          $sub_data['error'] = "* Erro a carregar a imagem, por favor verifique todos os requisitos da imagem.&lt;br/&gt;
              Error type: ";
          $sub_data['error'] .= $this-&gt;upload-&gt;display_errors();
      }
      else 
      {
          $sub_data['result'] = $this-&gt;upload-&gt;data();
          $name_file = $sub_data['result']['file_name'];
  
          $data['logotipo'] = $sub_data['result']['file_name'];
          $this-&gt;edit_data_m-&gt;update_image($data);
  
      }
      $template_data['main_content'] = $this-&gt;load-&gt;view('editar_imagem_empresa_v', $sub_data, true);
      $this-&gt;load-&gt;view('template_admin_v', $template_data);
  }
  </code></pre>
  
  <h3>Model:</h3>
  
  <pre><code>public function update_image($data){
      $this-&gt;load-&gt;helper('file');
  
      $imagem = $this-&gt;get_image();
      $nome_img = $this-&gt;get_image()-&gt;result_array();
      if($imagem-&gt;num_rows() &gt; 0 &amp;&amp; $nome_img[0]['logotipo'] != "sem_logotipo.png")
      {
          $imagem2 = $this-&gt;get_image()-&gt;result_array();
          unlink('./images/uploaded/'.$imagem2[0]['logotipo']);
      }
      $this-&gt;db-&gt;where('id', $this-&gt;session-&gt;userdata('id_empresa'));
      $this-&gt;db-&gt;update('empresa_tbl', $data);
  }
  </code></pre>
  
  <p>Thanks for your help!</p>