What is the error you get with "$query->addWhere('LOWER(r.' . $field . ')
LIKE ? ', '%ré%');"?

- Jon

On Thu, Mar 12, 2009 at 1:38 PM, tonio607 <antoine.roll...@gmail.com> wrote:

>
> Hello,
>
> There's nothing in google about doctrine and search for ut8 strings
> like :
>
> $query->addWhere('LOWER(r.' . $field . ') LIKE ? ', '%ré%');
>
> All my encoding settings are properly configured but then I got an
> exception about the character é not found.
>
> And if I try to do for example :
>
> $query->addWhere('LOWER(r.' . $field . ') LIKE ? ', '%'.mb_strtolower
> ('ré', 'utf-8').'%');
>
> Then the é character is stripped so I got too much results.
>
> Does anybody have faced such problems ? Do I have forgotten something
> in the encoding settings (files, symfony, doctrine encoding, etc.) ?
>
> Thanks
> >
>


-- 
Jonathan H. Wage
Open Source Software Developer & Evangelist
http://www.jwage.com
http://www.doctrine-project.org
http://www.symfony-project.org

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to