Re: Interesting Issue with strtoupper()
| From: | Moriyoshi Koizumi | Date: | Mon, 07 Apr 2003 20:03:09 +0000 |
| Subject: | Re: Interesting Issue with strtoupper() | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-768@lists.php.net to get a copy of this message | ||
Which version of PHP? And what are the locale settings (envs) like?
AFAIK a similar case was reported and fixed already.
Moriyoshi
"Timothy Hitchens \(HiTCHO\)" <hitcho@php.net> wrote:
> The following is an error that one of the guys at my office found today.
>
> This is the code snippet that generated the problem...
>
> echo ("btnText:$btnText<BR>");
> $text = strtoupper(xlat($btnText));
> echo ("text:$text<BR>");
>
> ... where the value of xlat($btnText) is "N舖ta".
>
> It appears that strtoupper() will sometimes produce "N膣TA" and
> sometimes the "a" will be correctly uppercased.