php-src/ext/standard/tests/strings/strtoupper.phpt
2002-10-22 19:39:17 +00:00

18 lines
399 B
PHP

--TEST--
Test strtoupper on non-ASCII characters
--POST--
--GET--
--FILE--
<?php
$chars = "àëï";
setlocale(LC_ALL, "C");
// Not sure which is most portable. BSD's answer to
// this one. A small array based on PHP_OS should
// cover a majority of systems and makes the problem
// of locales transparent for the end user.
setlocale(LC_CTYPE, "ISO8859-1");
print(strtoupper($chars));
?>
--EXPECT--
ÄËÏ