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

Reply
 
Thread Tools

PHP/ strtolower for russian text
Old 25.09.2006, 10:04   #1
Web developer
 
Aram Ghazanchyan's Avatar
 
Join Date: 09 2002
Location: Yerevan
Age: 44
Posts: 896
Rep Power: 0
Default PHP/ strtolower for russian text

strtolower() nu i mb_strtolower() ne rabotayut dlya russkogo texta v Unicode kodirovke. Chto delat'?

Old 25.09.2006, 11:14   #2
Banned
 
Forever Child's Avatar
 
Join Date: 10 2001
Location: ...осень колибри
Age: 45
Posts: 7,487
Rep Power: 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.

Old 25.09.2006, 11:16   #3
Web developer
 
Aram Ghazanchyan's Avatar
 
Join Date: 09 2002
Location: Yerevan
Age: 44
Posts: 896
Rep Power: 0
Default

Ne znayu v chem byla problema, no posle ocherednogo refresha, poluchilos'. Spasibo za vnimanie...

Old 25.09.2006, 23:26   #4
Moderator
 
Join Date: 03 2002
Location: Russia
Posts: 123
Rep Power: 0
Default

Quote:
Originally Posted by Forever Child View Post
можно и самому написать. к примеру, используя preg_replace.
Ну если уж так, то проще и быстрее сделать с помощью strtr().
__________________
Життя - це не тільки будні © Nemiroff

Old 26.09.2006, 06:50   #5
Banned
 
Forever Child's Avatar
 
Join Date: 10 2001
Location: ...осень колибри
Age: 45
Posts: 7,487
Rep Power: 0
Default

Quote:
Originally Posted by hayk View Post
Ну если уж так, то проще и быстрее сделать с помощью strtr().
так тоже можно.

Old 27.09.2006, 13:14   #6
Школьник
 
Join Date: 08 2002
Location: Yerevan,Armenia
Posts: 203
Rep Power: 5
Default

умники

PHP Code:
setlocale(LC_ALL,'russian'); 

Old 27.09.2006, 13:23   #7
Школьник
 
Join Date: 08 2002
Location: Yerevan,Armenia
Posts: 203
Rep Power: 5
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




Реклама:
реклама
Buy text link .

All times are GMT. The time now is 22:15.
Top

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