|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2001-12-23 15:51 UTC] venaas@php.net
[2002-01-22 08:03 UTC] martin at humany dot com
[2002-04-21 06:24 UTC] bs_php at infeer dot com
[2002-06-17 07:02 UTC] hholzgra@php.net
[2002-07-13 18:10 UTC] derick@php.net
[2002-08-27 07:50 UTC] fille at fukt dot bth dot se
[2002-12-21 09:49 UTC] moriyoshi@php.net
[2002-12-23 10:15 UTC] xtango at netcombbs dot com dot ar
[2002-12-25 02:30 UTC] moriyoshi@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 07:00:01 2025 UTC |
When using the ucwords() function with strings containing international characters, the function will return incorrect values. The return value will be different every time the function is called. I've seen bogus bug reports for this function so we have a slight chance for this to be yet another bogus bug, but look at this: echo setlocale(LC_ALL, "0"); Output: LC_COLLATE=C;LC_CTYPE=Spanish_Argentina.1252;LC_MONETARY=C;LC_NUMERIC=C;LC_TIME=C --- echo ucwords('????????????????'); Output: ???????????????? Output again (refresh button on browser): ???????????????? Output again: ???????????????? etc. etc. Now, if I do setlocale(LC_ALL, "spanish"), the restult is still the same. I've noted that the problem is not the intl. char, but the char after that. This is, ucwords("ca?as") will return "Ca?as" or "Ca?As", randomly. Scenario: Windows XP Pro (spanish) Apache 1.3.22 PHP 4.1.0