Re: [SMARTY] UTF-8 and capitalize issues
| From: | Vicente Werner | Date: | Thu, 09 Mar 2006 17:28:36 +0000 |
| Subject: | Re: [SMARTY] UTF-8 and capitalize issues | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-13349@lists.php.net to get a copy of this message | ||
The problem is that regexp expressions DON'T work correctly with UTF-8
strings. Wait until php6 to have it solved
On 3/9/06, Cameron Perry <lists@filled.us> wrote:
>
> Hi everyone,
>
> I'm applying the capitalize modifier to a particular text variable,
> which works as expected in most cases. What has recently come up is
> that non-english characters are throwing a bit of a kink into my
> plan. For example, Galápagos is coming out as GaláPagos with the
> capitalize modifier.
>
> I looked through the forums and didn't find any solutions that
> worked, including using the setlocale() PHP function on my page...
> All my Smarty template pages are set to charset=utf-8 in the headers,
> and my mysql tables and text fields are utf8_general_ci.
>
> So at this point I'm at a bit of a loss as to what I should do next.
>
> Any ideas?
>
>
> Thanks!
> Cameron
>
> --
> Smarty General Mailing List (http://smarty.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
Vicente Werner y Sánchez