Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Character set support for modifier "lower"

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Feature Requests
View previous topic :: View next topic  
Author Message
sviver
Smarty Rookie


Joined: 14 Jun 2006
Posts: 6

PostPosted: Sun Jul 01, 2007 3:22 pm    Post subject: Character set support for modifier "lower" Reply with quote

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
View user's profile Send private message
boots
Administrator


Joined: 16 Apr 2003
Posts: 5611
Location: Toronto, Canada

PostPosted: Thu Jul 05, 2007 5:53 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Feature Requests All times are GMT
Page 1 of 1

 
Jump to:  
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
Protected by Anti-Spam ACP