Thank for your answer. I was expecting you say something like this.
Obviously i tryed UTF-8 as first place along with many other
configuration of charset. Unfortunately, if i put $html-
>charset('UTF-8'); you can look at the result now at
>http://www.webrickco.com/caketest
It's even worse!!! This time, no encoding is working: html, database
and sure Ajax requests...
On 15 Jun, 12:26, AD7six <[EMAIL PROTECTED]> wrote:
> On Jun 15, 11:33 am, Webrickco <[EMAIL PROTECTED]> wrote:
>
> > Hi, I have a problem figuring out why the result of an Ajax execution
> > is not in the correct encoding under cake.
>
> because you are not using UTF-8, ajax requests always use and expect
> UTF-8.
>
> > You can see the result athttp://webrickco.com/caketest. Using the
> > user/password david/test and clicking on the first link: "Alterar a
> > configuração dos menus". At this point the result of the consultation
> > to the database is correctly displayed as well as all other
> > accentuated text in the page, but if I click on a tick button (calls
> > an Ajax function to copy the values to the edit fields and refreshes
> > the item list), the refresh of the DIV is compromised. How do i do to
> > keep the correct encoding after I fire an Ajax function?
>
> By making everything UTF-8.
>
> > Some data on the site:
> > Default.ctp: $html->charset('ISO-8859-1');
>
> Why.
>
> > Ajax function triggered as follow:
> > echo "<td>".$ajax->submit('tick.png', array('update' => 'tabela',
> > 'loaded' => Effect.BlindDown(\'tabela\')', 'url' => '/menus/update/'.
> > $menu['Menu']['id']."/".$menu['Menu']['description']."/".$menu['Menu']
> > ['link']))."</td>";
>
> > Database fields and tables are kept in utf8_general_ci encoding by
> > default
>
> Double why (are you mixing encodings - that's a recipe for disaster)
>
> For
> info:http://groups.google.com/group/cake-php/browse_thread/thread/28f129e2...
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---