Welcome Guest, Not a member yet? Register   Sign In
German Umlauts from Database to input Field
#1

[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:
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.


Messages In This Thread
German Umlauts from Database to input Field - by El Forum - 09-14-2014, 11:53 AM
German Umlauts from Database to input Field - by El Forum - 09-14-2014, 12:34 PM
German Umlauts from Database to input Field - by El Forum - 09-14-2014, 12:52 PM
German Umlauts from Database to input Field - by El Forum - 09-14-2014, 01:49 PM
German Umlauts from Database to input Field - by El Forum - 09-14-2014, 08:32 PM



Theme © iAndrew 2016 - Forum software by © MyBB