php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #45454 strtoupper() doesn't work with danish letters: ???
Submitted: 2008-07-08 12:55 UTC Modified: 2008-07-08 12:58 UTC
From: hkb at hkb dot it Assigned:
Status: Not a bug Package: *General Issues
PHP Version: 5.2.6 OS: Linux/Debian
Private report: No CVE-ID: None
 [2008-07-08 12:55 UTC] 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???

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-07-08 12:58 UTC] jani@php.net
Fixed in PHP 6, in PHP 5, use mb_strtoupper() (mbstring)
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon Jul 28 05:00:03 2025 UTC