Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:754 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 90438 invoked from network); 7 Apr 2003 12:25:22 -0000 Received: from unknown (HELO sister.hitcho.com.au) (139.130.74.233) by pb1.pair.com with SMTP; 7 Apr 2003 12:25:22 -0000 Received: from bambino (bambino_lan.hitcho.com.au [192.168.0.15]) by sister.hitcho.com.au (8.11.6/8.11.6) with ESMTP id h37CPKl75556 for ; Mon, 7 Apr 2003 22:25:21 +1000 (EST) (envelope-from hitcho@php.net) Reply-To: To: Date: Mon, 7 Apr 2003 22:25:15 +1000 Message-ID: <003201c2fd00$bef611e0$0f00a8c0@bambino> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.4024 Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Subject: Interesting Issue with strtoupper() From: hitcho@php.net ("Timothy Hitchens \(HiTCHO\)") The following is an error that one of the guys at my office found today. This is the code snippet that generated the problem...=20 echo ("btnText:$btnText
");=20 $text =3D strtoupper(xlat($btnText));=20 echo ("text:$text
");=20 ... where the value of xlat($btnText) is "N=E4sta".=20 It appears that strtoupper() will sometimes produce "N=E4STA" and sometimes the "a" will be correctly uppercased.=20 Timothy Hitchens (HiTCHO) Web Application Consulting e-mail: tim@hitcho.com.au mobile: 0419 521 440 ------------------------------------------------- HiTCHO Group - ABN: 85 816 540 110 web site: http://www.hitcho.com.au/ snail mail: PO Box 101 Arana Hills QLD 4054 telephone: 07 3351 0951 - facsimile: 07 3351 0952 -------------------------------------------------