Armenian Knowledge Base  

Go Back   Armenian Knowledge Base > Technical sections > Webmaster Zone > Web Development
Register

Reply
 
LinkBack Thread Tools
Old 25.09.2006, 11:04   #1
Web developer
 
Aram Ghazanchyan's Avatar
 
Join Date: 09 2002
Location: Yerevan
Age: 36
Posts: 896
Downloads: 1
Uploads: 0
Reputation: 9 | 0
Default PHP/ strtolower for russian text

strtolower() nu i mb_strtolower() ne rabotayut dlya russkogo texta v Unicode kodirovke. Chto delat'?
Reply With Quote
Old 25.09.2006, 12:14   #2
Banned
 
Forever Child's Avatar
 
Join Date: 10 2001
Location: ...осень колибри
Age: 37
Posts: 7,487
Downloads: 0
Uploads: 0
Reputation: 0 | 0
Default

Quote:
Originally Posted by Aram Ghazanchyan View Post
strtolower() nu i mb_strtolower() ne rabotayut dlya russkogo texta v Unicode kodirovke. Chto delat'?
можно и самому написать. к примеру, используя preg_replace.
Reply With Quote
Old 25.09.2006, 12:16   #3
Web developer
 
Aram Ghazanchyan's Avatar
 
Join Date: 09 2002
Location: Yerevan
Age: 36
Posts: 896
Downloads: 1
Uploads: 0
Reputation: 9 | 0
Default

Ne znayu v chem byla problema, no posle ocherednogo refresha, poluchilos'. Spasibo za vnimanie...
Reply With Quote
Old 26.09.2006, 00:26   #4
Moderator
 
Join Date: 03 2002
Location: Russia
Posts: 123
Downloads: 0
Uploads: 0
Reputation: 0 | 0
Default

Quote:
Originally Posted by Forever Child View Post
можно и самому написать. к примеру, используя preg_replace.
Ну если уж так, то проще и быстрее сделать с помощью strtr().
Reply With Quote
Old 26.09.2006, 07:50   #5
Banned
 
Forever Child's Avatar
 
Join Date: 10 2001
Location: ...осень колибри
Age: 37
Posts: 7,487
Downloads: 0
Uploads: 0
Reputation: 0 | 0
Default

Quote:
Originally Posted by hayk View Post
Ну если уж так, то проще и быстрее сделать с помощью strtr().
так тоже можно.
Reply With Quote
Old 27.09.2006, 14:14   #6
Школьник
 
TanTaL's Avatar
 
Join Date: 08 2002
Location: Yerevan,Armenia
Posts: 203
Downloads: 0
Uploads: 0
Reputation: 15 | 3
Default

умники

PHP Code:
setlocale(LC_ALL,'russian'); 
Reply With Quote
Old 27.09.2006, 14:23   #7
Школьник
 
TanTaL's Avatar
 
Join Date: 08 2002
Location: Yerevan,Armenia
Posts: 203
Downloads: 0
Uploads: 0
Reputation: 15 | 3
Default

http://am.php.net/manual/en/function.strtolower.php


strtolower
(PHP 3, PHP 4, PHP 5)

strtolower -- Make a string lowercase
Description
string strtolower ( string str )


Quote:
Returns string with all alphabetic characters converted to lowercase.

Note that 'alphabetic' is determined by the current locale. This means that in i.e. the default "C" locale, characters such as umlaut-A (Ä) will not be converted.
Reply With Quote
Sponsored Links
Reply

Thread Tools


На правах рекламы:
реклама

All times are GMT. The time now is 04:19.


Powered by vBulletin® Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.