|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
sviver Smarty Rookie
Joined: 14 Jun 2006 Posts: 6
|
Posted: Sun Jul 01, 2007 3:22 pm Post subject: Character set support for modifier "lower" |
|
|
Hi,
Sorry if I missed something and it's my fault, but I had a look at the "lower" modifier source code and see that it just uses strtolower();
However, if you have for example utf8 data, this won't work...
I think the best solution might be to set the encoding as $smarty->whatever, and in the modifier you could use this information to call mb_strtolower instead of strtolower (or do whatever else) if needed.
Regards,
Oliver |
|
Back to top |
|
boots Administrator
Joined: 16 Apr 2003 Posts: 5611 Location: Toronto, Canada
|
Posted: Thu Jul 05, 2007 5:53 am Post subject: |
|
|
Hi.
For one, modifiers don't receive the Smarty object and for another, Smarty's only requirement is PHP 4.0.6+ -- so the use of non-base extensions is precluded.
The same ground was covered here:
- http://www.phpinsider.com/smarty-forum/viewtopic.php?p=38307
Best Regards. |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|