Re: Fwd: [SMARTY] Smarty and Unicode
| From: | Vicente Werner | Date: | Wed, 01 Mar 2006 08:53:29 +0000 |
| Subject: | Re: Fwd: [SMARTY] Smarty and Unicode | ||
| References: | 1 2 3 4 5 6 7 8 9 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-13343@lists.php.net to get a copy of this message | ||
Yes, but what I was referring to in my email to Marcus was that if the
variable contents you need to modify were UTF-8 strings you might get very
strange results since php regex will treat that utf-8 string like an ASCII
one.
That issue has made me turn my back on PHP until version 6, where it'll be
solved -I hope, unless zend gets a new stupid idea again and decides to put
the effort in adding better support for .net, or anythin' like that-
On 3/1/06, messju mohr <messju@lammfellpuschen.de> wrote:
>
> On Wed, Mar 01, 2006 at 09:12:44AM +0100, Vicente Werner wrote:
> > ---------- Forwarded message ----------
> > From: Vicente Werner <vwerner@gmail.com>
> > Date: Mar 1, 2006 9:06 AM
> > Subject: Re: [SMARTY] Smarty and Unicode
> > To: messju mohr <messju@lammfellpuschen.de>
> >
> > Regex's in PHP5.x or lower don't work correctly for UTF-8 strings, it
> does
> > match correctly ascii chars, but not UTF-8 ones (despite claiming
> support
> > for it..) it won't be ready and fully useable until PHP-6.
>
> correct. but the smarty syntax is ascii and not utf-8. the regexes
> correctly match the stuff inside {} and correctly ignore the stuff
> outside {}.
>
> > On 2/28/06, messju mohr <messju@lammfellpuschen.de> wrote:
> > >
> > > On Tue, Feb 28, 2006 at 06:07:32PM +0000, Marcus Bointon wrote:
> > > > On 28 Feb 2006, at 17:57, Vicente Werner wrote:
> > > >
> > > > >Regex don't even work, so if you're goin' to use regular
> > > > >expressions, you're out of luck for non latin languages
> > > >
> > > > So given that it apparently does work, is it therefore true that the
> > > > Smarty compiler and all standard plugins are regex-free?
> > >
> > > no. first of all: all plugins that care about encoding (like
> > > capitalize, lower or truncate) may not (or very likely won't) work.
> > >
> > > regearding regexes: i don't see a problem why an ascii reges shouldn't
> > > match on utf-input. if you stick to ascii with with your variable
> > > names and identifiers, then utf-8 templates should be transparent to
> > > smarty.
> > >
> > > > Marcus
> > > > --
> > > > Marcus Bointon
> > > > Synchromedia Limited: Putting you in the picture
> > > > marcus@synchromedia.co.uk |
> > > > http://www.synchromedia.co.uk
> > > >
> > > > --
> > > > Smarty General Mailing List (http://smarty.php.net/)
> > > > To unsubscribe, visit:
> > > > http://www.php.net/unsub.php
> > >
> > >
> > >
> >
> >
> > --
> > Vicente Werner y Sánchez
> >
> >
> > --
> > Vicente Werner y Sánchez
>
>
>
--
Vicente Werner y Sánchez