Welcome Guest, Not a member yet? Register   Sign In
CodeIgniter messing up é's
#1

[eluser]IanMcQ[/eluser]
Hi,

I have a form and one of the fields contains an ”é” (accented e). My MySQL charset and collation is correct (utf8 and utf8_unicode_ci). Whenever I submit the form, it makes the field “Bon Appétit” to “Bon App” (it cuts it off starting with the é). However, I can manually go into phpMyAdmin and enter in “Bon Appétit” and it takes the data. I’m guessing that this is a CI encoding issue. What could be causing this?

Here’s my code (abbreviated):

Code:
function avatar_edit()
  {
      $this->load->helper(‘url’);
      $id = $this->uri->segment(3);
      if (!is_numeric($id))
      {
        exit;
      }

      // handle post request
      if (isset($_POST[‘edit_avatar’]))
      {
        $avatar_id = $_POST[‘avatar_id’];
        $name = $_POST[‘avatar_name’];
        $solution = $_POST[‘avatar_solution’];

          $edit_info = array(
                                  ...
                                  ‘avatar_name’ => $name,
                                  ‘avatar_solution’ => $solution,
                                );
          $this->db->where(‘avatar_id’, $avatar_id);
          $this->db->update(‘neoavatars_list’, $edit_info);
          ...
      }

      ...
  }


Messages In This Thread
CodeIgniter messing up é's - by El Forum - 09-28-2008, 07:45 AM
CodeIgniter messing up é's - by El Forum - 09-30-2008, 11:41 AM
CodeIgniter messing up é's - by El Forum - 09-30-2008, 01:19 PM
CodeIgniter messing up é's - by El Forum - 09-30-2008, 01:25 PM
CodeIgniter messing up é's - by El Forum - 09-30-2008, 01:27 PM
CodeIgniter messing up é's - by El Forum - 10-01-2008, 02:24 AM
CodeIgniter messing up é's - by El Forum - 10-01-2008, 02:29 AM
CodeIgniter messing up é's - by El Forum - 10-01-2008, 02:33 PM
CodeIgniter messing up é's - by El Forum - 10-01-2008, 03:20 PM
CodeIgniter messing up é's - by El Forum - 10-02-2008, 07:33 AM



Theme © iAndrew 2016 - Forum software by © MyBB