Interesting Issue with strtoupper()

php.internals

Timothy Hitchens (HiTCHO)

23 years ago
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ästa". It appears that strtoupper() will sometimes produce "NäSTA" and sometimes the "a" will be correctly uppercased. 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 -------------------------------------------------

Moriyoshi Koizumi

23 years ago
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: