#46626 [Opn->Ver]: mb_convert_case does not handle apostrophe correctly
| From: | jani@php.net | Date: | Fri, 21 Nov 2008 18:17:10 +0000 |
| Subject: | #46626 [Opn->Ver]: mb_convert_case does not handle apostrophe correctly | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-131190@lists.php.net to get a copy of this message | ||
ID: 46626
Updated by: jani@php.net
Reported By: tbartels at gmail dot com
-Status: Open
+Status: Verified
Bug Type: mbstring related
Operating System: *
-PHP Version: 5.2.6
+PHP Version: 5CVS-2008-11-21
Previous Comments:
------------------------------------------------------------------------
[2008-11-20 01:38:12] tbartels at gmail dot com
Description:
------------
The first letter after an apostrophe of a possessive or conjugated word
converted using MB_CASE_TITLE in mb_convert_case() get's capitalized
incorrectly.
Reproduce code:
---------------
<?php
echo mb_convert_case("I'll never believe you couldn't see it!",
MB_CASE_TITLE);
?>
Expected result:
----------------
I'll Never Believe You Couldn't See It!
Actual result:
--------------
I'Ll Never Believe You Couldn'T See It!
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=46626&edit=1