Req #46607 [Com]: mb_convert_case with MB_CASE_TITLE should be improved

From: Date: Mon, 04 Jan 2016 17:00:45 +0000
Subject: Req #46607 [Com]: mb_convert_case with MB_CASE_TITLE should be improved
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-198410@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=46607&edit=1 ID: 46607 Comment by: daniel at 64studio dot com Reported by: kriskra at gmail dot com Summary: mb_convert_case with MB_CASE_TITLE should be improved Status: Open Type: Feature/Change Request Package: mbstring related Operating System: * PHP Version: 5.2.6 Block user comment: N Private report: N New Comment: This appears to be a duplicate of https://bugs.php.net/bug.php?id=36311 It was already fixed for straight apostrophe/quotes (HTML &#39;) in https://bugs.php.net/bug.php?id=46626 but not for the curled apostrophe/quote (HTML &rsquo;) when using PHP 7.1.0-dev from git. Reproduce code: --------------- <?php echo mb_convert_case("People's issues versus people’s issues", MB_CASE_TITLE); ?> Expected result: ---------------- People's Issues Versus People’s Issues Actual result: -------------- People's Issues Versus People’S Issues Previous Comments: ------------------------------------------------------------------------ [2008-11-18 22:51:40] kriskra at gmail dot com Description: ------------ mb_convert_case with MB_CASE_TITLE capitalises the 's' after an apostrophe. mb_convert_case with MB_CASE_TITLE capitalises the 't' after a number. Reproduce code: --------------- <?php print mb_convert_case("THE APOSTROPHE'S 'S' SHOULD NOT BE CAPITALISED", MB_CASE_TITLE); print mb_convert_case("IN THE 5TH CENTURY NOTING WAS CAPITALISED", MB_CASE_TITLE); ?> Expected result: ---------------- The Apostrophe's 'S' Should Not Be Capitalised In The 5th Century Noting Was Capitalised Actual result: -------------- The Apostrophe'S 'S' Should Not Be Capitalised In The 5Th Century Noting Was Capitalised ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=46607&edit=1

« previous php.bugs (#198410) next »