Re: database is utf-8, page is utf-8, but i get weird characters

2008-11-03 Thread bartvh
setting the encoding in the database connection was the trick. however, with this problem fixed weird things started up showing in other places. turns out you have to specify UTF-8 when you use htmlentities as well. i solved this by defining my own function utfentities($string) { return htmle

Re: database is utf-8, page is utf-8, but i get weird characters

2008-11-03 Thread Marcelo Andrade
On Mon, Nov 3, 2008 at 8:48 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > There is also an application-global encoding setting in config/ > core.php I'm a new at this list and I don't know if it was already covered, but I solve these problems setting UTF-8 as default charset at Apache. Put

Re: database is utf-8, page is utf-8, but i get weird characters

2008-11-03 Thread CG
another thing to check is your host provider. I have all the things in utf8 but in my host provider it keeps showing as iso-8859-1, so, after setting database and App.encoding to utf8, i also had to add a: header('Content-Type: text/html; charset=utf-8"'); at the beggining of index.php in my web

Re: database is utf-8, page is utf-8, but i get weird characters

2008-11-03 Thread [EMAIL PROTECTED]
There is also an application-global encoding setting in config/ core.php On Nov 2, 8:33 pm, Dave J <[EMAIL PROTECTED]> wrote: > Not sure why it would show up as a question mark when you generate the > form with the helper, however, when connecting to the database, make > sure you set the encodin

Re: database is utf-8, page is utf-8, but i get weird characters

2008-11-02 Thread Dave J
Not sure why it would show up as a question mark when you generate the form with the helper, however, when connecting to the database, make sure you set the encoding as well. var $default = array('driver' => 'mysql', 'host' => 'localhost', 'login' =

database is utf-8, page is utf-8, but i get weird characters

2008-11-02 Thread bartvh
My MySQL5 database is encoded in utf-8, and the page is as well (which is declared in the html meta tags), however when I generate a select field with the form helper, an uncommon character (é to be precise) shows up as a question-diamond in firefox. if i manually set firefox to use western (iso-8