Welcome Guest, Not a member yet? Register   Sign In
Experiencing a problem with UTF-8 and diacritics (characters with accents, etc.)
#2

[eluser]Rok Biderman[/eluser]
You didn't post your whole view so it's impossible to know what exactly could affect your encoding. It might only be your browser. When I tried this with your input echo displayed perfectly.

Code:
public function index()
{
  $this->load->helper('form');
  if ($this->input->post()) {
   echo $this->input->post('something');
  }
  $this->load->view('test');
}

and the view test.php

Code:
<!DOCTYPE HTML>
&lt;html lang="es-ES"&gt;
&lt;head&gt;
&lt;meta charset="UTF-8"&gt;
&lt;title&gt;&lt;/title>
&lt;/head&gt;
&lt;body&gt;
&lt;?php echo form_open(''); ?&gt;
&lt;?php echo form_input('something'); ?&gt;
&lt;?php echo form_submit('submit', 'Submit'); ?&gt;
&lt;?php echo form_close(); ?&gt;
&lt;/body&gt;
&lt;/html&gt;


Messages In This Thread
Experiencing a problem with UTF-8 and diacritics (characters with accents, etc.) - by El Forum - 03-20-2012, 04:03 PM



Theme © iAndrew 2016 - Forum software by © MyBB