I've got a problem with CodeIgniter filtering out POST variables containing characters with accents.
Here's my HTML page:
<!DOCTYPE html>
<head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head>
<body>    
    <form action="/test" method="post" accept-charset="utf-8">
        <input type="text" name="name" value=""  />
        <input type="submit" name="submit" value="Submit"  />    
<form>    
</body>
</html>
Here's the index function of my '/test' CodeIgniter controller:
public function index {
    echo '<pre>';
    print_r($_POST);
    die();
}
...With the name entered as to 'my name' I get this:
Array
(
    [name] => my name
    [submit] => Submit
)
...But with the name entered as 'my namé', the variable gets passed as empty:
Array
(
    [name] => 
    [submit] => Submit
)
If I post the same form to a standalone PHP script it works fine. I can't see anything obvious in the config that's causing this. Can anyone help?
 
     
    