From:             [EMAIL PROTECTED]
Operating system: all
PHP version:      4.0.6
PHP Bug Type:     Feature/Change Request
Bug description:  strtolower/strtoupper and special characters

Special characters are not converted by strtolower/strtoupper unless I set
the appropriate locale.

However, in an international website the user interface language might be
English, whereas the user still enters German data with umlauts. In this
case it is not really possible to switch locale (as it is not known up
front which language the user enters - might as well be his Swedish name)
to correctly convert all special characters.

I suggest extending strtoupper and strtolower in a way that ALL special
characters (at least all those appearing in the Western Standard charset)
are ALWAYS converted correctly.

That can't do any bad because the user (programmer) would always except the
functions just to upper/lowercase ALL alphabetic characters, special
characters included.

If the performance impact on strtoupper/strtolower is too big, it would
always be possible to introduce special functions for that or have the user
give a reference to the character set that the input is ... I guess your
ideas are way better than mine here.

In my opinion this would be a major improvement to PHP's international

Keep up the good work, anyway!


Edit bug report at:

PHP Development Mailing List <>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to