use utf8 throughout your website
saves you usually a lot of trouble :)

On 21 Jul., 23:34, Xoubaman <[email protected]> wrote:
> Hello
>
> I'm having problems with the form helper. When a field contains chars
> like ñ or vocals with accent, the value is not set to the
> corresponding input.
>
> ie, $this->data is
> Array
> (
>     [User] => Array
>         (
>             [id] => 1
>             [username] => foo
>         )
>
>     [Profile] => Array
>         (
>             [id] => 1
>             [user_id] => 1
>             [first_name] => Carlos
>             [last_name] => Gándara
>         )
> )
>
> but echo $form->input('Profile.last_name',array('label' => false));
> shows an empty text field.
>
> In the layout i'm using $html->charset('ISO-8859-1'); but I don't
> think the problem is here because $this->data gets the correct value.
>
> Any idea? Thanks in advance.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to