Welcome Guest, Not a member yet? Register   Sign In
$this->db->where
#5

[eluser]meigwilym[/eluser]
Quote:just another thing i’m getting “marchÃ@” instead of marché

Se ne marche pas? ;-)

You need to set the encoding for the files, any DataBase tables you may have and what's sent to the browser.

I save all files using UTF-8. Netbeans does this for me for every project now, but I used to do it in Notepad++ using the Format menu (encode in UTF-8).

All your DB table should be in utf8_general_ci collation (the tables and fields).

Finally, send a header before you output anything with
Code:
$this->output->set_header('Content-Type: text/html; charset=utf-8');
I set this in MY_Controller so that it's sent for every page. And include this line in your HTML:
Code:
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
This should be the first line after the <head> tag.

Bon chance!

Mei


Messages In This Thread
$this->db->where - by El Forum - 06-02-2009, 07:01 AM
$this->db->where - by El Forum - 06-02-2009, 08:27 AM
$this->db->where - by El Forum - 06-02-2009, 08:58 AM
$this->db->where - by El Forum - 06-02-2009, 09:16 AM
$this->db->where - by El Forum - 06-02-2009, 01:38 PM



Theme © iAndrew 2016 - Forum software by © MyBB