#45454 [Opn->Bgs]: strtoupper() doesn't work with danish letters: æøå
| From: | jani@php.net | Date: | Tue, 08 Jul 2008 12:58:31 +0000 |
| Subject: | #45454 [Opn->Bgs]: strtoupper() doesn't work with danish letters: æøå | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-126374@lists.php.net to get a copy of this message | ||
ID: 45454
Updated by: jani@php.net
Reported By: hkb at hkb dot it
-Status: Open
+Status: Bogus
-Bug Type: Unknown/Other Function
+Bug Type: *General Issues
Operating System: Linux/Debian
PHP Version: 5.2.6
New Comment:
Fixed in PHP 6, in PHP 5, use mb_strtoupper() (mbstring)
Previous Comments:
------------------------------------------------------------------------
[2008-07-08 12:55:40] hkb at hkb dot it
Description:
------------
The function strtoupper does not work with the danish letters æøå. Here
is an example:
<?php
echo strtoupper('abcdefghijklmnopqrstuvxyzæøå');
?>
Outputs 'ABCDEFGHIJKLMNOPQRSTUVXYZæøå' when it should output
'ABCDEFGHIJKLMNOPQRSTUVXYZÆØÅ'.
Reproduce code:
---------------
<?php
echo strtoupper('abcdefghijklmnopqrstuvxyzæøå');
?>
Expected result:
----------------
ABCDEFGHIJKLMNOPQRSTUVXYZÆØÅ
Actual result:
--------------
ABCDEFGHIJKLMNOPQRSTUVXYZæøå
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=45454&edit=1