Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.

Cyrillic bug

 
Post new topic   Reply to topic    Smarty Forum Index -> Bugs
View previous topic :: View next topic  
Author Message
dobs
Smarty Rookie


Joined: 29 Dec 2010
Posts: 25
Location: Kiev / Ukraine

PostPosted: Sun Jun 01, 2014 1:15 pm    Post subject: Cyrillic bug Reply with quote

Hello, I use latest SMARTY, PHP 5.3 and utf-8


Code:
{'test'|ucfirst} // Test
{'проверка'|ucfirst} // проверка
{'test'|strtoupper} // TEST
{'проверка'|strtoupper} // проверка
{'test'|upper} // TEST
{'проверка'|upper} // ПРОВЕРКА


It's bug or not?
Back to top
View user's profile Send private message Visit poster's website
U.Tews
Administrator


Joined: 22 Nov 2006
Posts: 5067
Location: Hamburg / Germany

PostPosted: Mon Jun 02, 2014 3:01 am    Post subject: Reply with quote

For the PHP functions PHP has the following note:

"Note that 'alphabetic' is determined by the current locale. For instance, in the default "C" locale characters such as umlaut-a () will not be converted."

You must set the right locale.

See http://php.net/manual/en/function.setlocale.php

So it's not a Smarty bug.
Back to top
View user's profile Send private message
dobs
Smarty Rookie


Joined: 29 Dec 2010
Posts: 25
Location: Kiev / Ukraine

PostPosted: Mon Jun 02, 2014 10:08 am    Post subject: Reply with quote

OK, Thanks!
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Smarty Forum Index -> Bugs 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