title: issue trying to save utf-8 in laravel
body: <p>In my laravel app, I am working on a controller with two functions for adding users to the database (superfluous code excluded).</p>
  
  <p>The first function takes input from a form and creates a single user:</p>
  
  <pre><code>public function addSingleUser() {
      $first_name = Input::get('firstName');
      $last_name  = Input::get('lastName');
      $email      = Input::get('email');
      $password   = str_random(6);
  
      $user = new User();
      $user-&gt;first_name = $first_name;
      $user-&gt;last_name  = $last_name;
      $user-&gt;email      = $email;
      $user-&gt;password   = Hash::make($password);
      $user-&gt;save();
  }
  </code></pre>
  
  <p>The second function reads in data from a csv and creates multiple users:</p>
  
  <pre><code>public function addManyUsers() {
      putenv("LANG=fr_FR.UTF-8");
      $users = Input::file('users');
      $file = fopen($users,"r");
  
      while($info = fgetcsv($file, 4096)) {
          $first_name = trim($info[0]);
          $last_name = trim($info[1]);
          $email = trim($info[2]);
          $password   = str_random(6);
  
          $user = new User();
          $user-&gt;first_name = $first_name;
          $user-&gt;last_name = $last_name;
          $user-&gt;email = $email;
          $user-&gt;password = Hash::make($password);
          $user-&gt;save();
      }
  
      fclose($file);
  }
  </code></pre>
  
  <p>Since users' names can have special characters, I need to be able to store utf-8 characters in the database. If I use utf-8 characters in the first function (via form input), everything gets stored correctly in the users table. But, if I use utf-8 characters in the second function (via csv), the fields are not stored correctly and get truncated at the first special character (ex: "Michæl" is stored as "Mich").</p>
  
  <p>I thought this might be a problem with fgetscsv() not reading the data in correctly, but when I tried data-dumping a field (ex: <code>dd($first_name);</code>), the outputted string is correct, containing the special characters. The same is true if I try <code>dd($user);</code>. So if the first function is able to save correctly to the database, I am confused on why the second is not?</p>