|
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 |
dobs Smarty Rookie
Joined: 29 Dec 2010 Posts: 25 Location: Kyiv / Ukraine
|
Posted: Sun Jun 01, 2014 1:15 pm Post subject: Cyrillic bug |
|
|
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 |
|
U.Tews Administrator
Joined: 22 Nov 2006 Posts: 5068 Location: Hamburg / Germany
|
Posted: Mon Jun 02, 2014 3:01 am Post subject: |
|
|
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 |
|
dobs Smarty Rookie
Joined: 29 Dec 2010 Posts: 25 Location: Kyiv / Ukraine
|
Posted: Mon Jun 02, 2014 10:08 am Post subject: |
|
|
OK, Thanks! |
|
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
|