09-14-2014, 11:53 AM
[eluser]Unknown[/eluser]
Hello everyone,
I've got German Umlauts in my Database for Real Names of Users. For example "Müller".
With this Code I take the Values from my Database:
Now I want to put the Name and the other values into some input fields in a From
But instead of Müller, the input field shows me Müller. How can I fix that Problem?
I tried utf8_encode(), utf8_decode() and htmlenteties(), but nothing worked for me.
My charset is also utf-8.
Hello everyone,
I've got German Umlauts in my Database for Real Names of Users. For example "Müller".
With this Code I take the Values from my Database:
Code:
$this->db->select('*');
$this->db->from('user');
$this->db->join('profile','user.ID = profile.user_id','left');
$this->db->where('username', $name);
$query = $this->db->get();
return $query->row_array();
Now I want to put the Name and the other values into some input fields in a From
Code:
echo form_input('name',$profile['name'],'class="form-control" style="width:300px;"');
But instead of Müller, the input field shows me Müller. How can I fix that Problem?
I tried utf8_encode(), utf8_decode() and htmlenteties(), but nothing worked for me.
My charset is also utf-8.