Re: wrong coding in layout variables from beforeRender function

2007-09-04 Thread MrTufty
Anna, Do you also have the line: echo $html->charset('UTF-8'); in your layout, as suggested above? The commands you say you have in your layout don't get parsed by the browser, whereas the tag which is inserted by $html->charset(); does. This could account for your problems, if not. Hope this

Re: wrong coding in layout variables from beforeRender function

2007-09-04 Thread Anna P
Yes it is:]. In fact, in the layout I use: at the beggining, so the browser knows what the encoding is. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-ph

Re: wrong coding in layout variables from beforeRender function

2007-09-04 Thread sunertl
is your browser configured to display utf-8? what you describe happend to me with german umlauts and back then it helped to switch the encoding in the browser (it was iso-8859-1) to utf-8 manually. i always thought the browser (firefox in my case) switches automatically but maybe a add-on or somet

Re: wrong coding in layout variables from beforeRender function

2007-09-04 Thread Anna P
Yes, there is UTF-8 in layout, DB stores data in UTF-8, encoding for connection with DB is set to UTF8, in cake there is UTF8 set for DB connections, I use UTF8 editor it's driving me crazy!:[ --~--~-~--~~~---~--~~ You received this message because you are sub

Re: wrong coding in layout variables from beforeRender function

2007-09-04 Thread majna
is there in layout utf8? echo $html->charset('UTF-8') ; html source: On Sep 4, 11:59 am, Anna P <[EMAIL PROTECTED]> wrote: > No, I don't use js (as for now). --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake

Re: wrong coding in layout variables from beforeRender function

2007-09-04 Thread Anna P
No, I don't use js (as for now). --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL

Re: wrong coding in layout variables from beforeRender function

2007-09-04 Thread metasan
Hi, Are you getting/using the titles in a javascript ? If it's the case try to put something like this : ... to make sure that the script is serving as utf8. let us know if it's work. regards, metasan. On Sep 4, 4:24 pm, Anna P <[EMAIL PROTECTED]> wrote: > Hi, I meant I have the table "s

Re: wrong coding in layout variables from beforeRender function

2007-09-04 Thread Anna P
Hi, I meant I have the table "subpages" in my DB which has fields: id, title, body. In the layout I retrieve titles of subpages as a link to a subpage like "Home page", "Contact", "About us". In the view the encoding is correct, it shows me polish letters, but in the layout it gives me question ma

Re: wrong coding in layout variables from beforeRender function

2007-09-03 Thread francky06l
WHen you say you "retrieve the titles", from DB ? Be sure to save the layout using UTF-8 (no BOM) if ever you store your titles in a file On Sep 3, 2:22 pm, Anna P <[EMAIL PROTECTED]> wrote: > Hi! Anyone has an idea how to solve my problem?;-) > I insert data to database using FCK editor, the da

wrong coding in layout variables from beforeRender function

2007-09-03 Thread Anna P
Hi! Anyone has an idea how to solve my problem?;-) I insert data to database using FCK editor, the data in DB looks OK. My DB has all the fields in UTF8, in database.php i set encoding => 'UTF8', in app_model.php I have 'set names utf8'. In the views where I display subpages and it's titles everyt