A couple of things:

did you try a word without the ñ? - it displays okay for me, albeit
with a mangled ñ.

a wild untested guess, but for the second parameter try
array('escape'=>false)

I usually use $form->end() rather than $form->submit() and also I
usually create a link to the submit, via the form name, viz
    <a href="javascript:document.formName.submit();"><?php
__('ACCEPTA_GA_USERS') ?></a>
so that I am not relying on an HTML button.

I strongly recommend the use of i18n - see
http://bakery.cakephp.org/articles/view/p28n-the-top-to-bottom-persistent-internationalization-tutorial
It's easy to set up and use, and you can type the characters straight
into the po file - provided you have made sure that your WHOLE
application is utf-8 (utf8 for mysql)

On Jun 18, 10:41 am, Miki <[EMAIL PROTECTED]> wrote:
> gbk says:
>
>     what charset are you using?
>     iso-8859-2?
>     check out this: Configure::write('App.encoding', '???');
>
>     gbk
>
> Thanks for the response gbk.
>
> I set the charset in the default layout header by <?php echo 
> $html->charset();?> and it appears like utf-8
>
> I'd tried to put Configure::write('App.encoding', 'utf-8'); at the
> beginning of the method in the controller and the button is empty
> again.
>
> If I wrote the character out of the form in the view the character is
> ok displayed, but inside the button no.
>
> Miki
--~--~---------~--~----~------------~-------~--~----~
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