|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #9749 ucwords() problem
Submitted: 2001-03-14 11:18 UTC Modified: 2001-03-14 11:50 UTC
From: jean-rene dot auger at rockdetente dot com Assigned:
Status: Closed Package: Strings related
PHP Version: 4.0.4pl1 OS: Windows NT Server 4.0
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
14 + 9 = ?
Subscribe to this entry?

 [2001-03-14 11:18 UTC] jean-rene dot auger at rockdetente dot com
echo ucwords("c?line");



but should output:


The "?" (ascii 130) character is one of many accented characters considered valid alphabetical lettrs in the French language.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-03-14 11:33 UTC]
can't reproduce this on unix

what kind of character set (and locale settings)
are you using?

in the ISO character set used by Windows and Unix
"?" should be 231 or 232, not 130

the range of 128-160 is undefined in the ISO 8859
character sets and might be treatet as a space
character by windows c-lib so that isspace() which
is used by ucwords returns true?
 [2001-03-14 11:47 UTC]
<?php echo ucwords("c?line"); ?> outputs 


on PHP 4.0.5-dev on Win32.

 [2001-03-14 11:50 UTC]
? is 130 in the DOS character set

it works fine in ANSI/ISO8859

PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Sat Sep 23 10:01:24 2023 UTC