Forum Moderators: coopster

Message Too Old, No Replies

Why is strtolower not working for some special characters?

         

toplisek

2:56 pm on Jan 12, 2011 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Why is strtolower not working for some special characters as I have tested example one character: È.
It will not lower this ch. to è

Is this bug within PHP coded syntax?

Matthew1980

3:20 pm on Jan 12, 2011 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi there toplisek,

Have a read of this [uk.php.net], as I think in this case strtolower() doesn't handle those chars. In the link I have provided there is quite a decent description of how this works, so I think as you just have to stipulate the particular char encoding you wish to use.

Hope that's what your after.

Cheers,
MRb