Do you use UTF-8? 

German has also some special characters (öäüß) and I have no problem there, but 
I started my application completely in UTF-8 ( code and database)

Anja

-----Ursprüngliche Nachricht-----
Von: [email protected] [mailto:[EMAIL PROTECTED] Im Auftrag von [EMAIL 
PROTECTED]
Gesendet: Donnerstag, 9. Oktober 2008 03:20
An: CakePHP
Betreff: Re: Non alphanumeric chars breaks $validate error messages


Actually it happens everywhere and I hadn't noticed it.
For example:

<th><?php echo $paginator->sort('Descripción');?></th>

The cell comes out empty when the page is rendered.



On Oct 8, 9:15 pm, "R. Davila" <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm using the $validate array to setup validation and error messages 
> in the model.
>
> Given a field called "description", the following works perfectly:
>
> $validate = array(
>  'description' => array(
>   'rule' => array('minLength', 20),
>   'message' => 'Description must be at least 20 characters'));
>
> If I translate the error message to spanish it would be:
>   'message' => 'La descripción tiene que ser al menos 20 
> caracteres'));
>
> Notice the ó in the translated word "description" == "descripción".
>
> The result is that no message is shown. The error is still triggered though.
>
> I tested it with all accentuated vocals á é í ó ú and ñ, all of which 
> are heavily used in spanish.
>
> How can I overcome this?
>
> Thanks


--~--~---------~--~----~------------~-------~--~----~
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