#21708 [Opn->Csd]: ucfirst() trouble again
| From: | moriyoshi@php.net | Date: | Tue, 18 Feb 2003 18:16:02 +0000 |
| Subject: | #21708 [Opn->Csd]: ucfirst() trouble again | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-33449@lists.php.net to get a copy of this message | ||
ID: 21708
Updated by: moriyoshi@php.net
Reported By: overseas at mtu-net dot ru
-Status: Open
+Status: Closed
Bug Type: Strings related
Operating System: Win 2000 Pro Russian + SP2
PHP Version: 4.3.0
New Comment:
This bug has been fixed in CVS.
In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.
In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
Thank you for the report, and for helping us make PHP better.
note: The fix will be available there in 8 hours.
Previous Comments:
------------------------------------------------------------------------
[2003-02-09 11:52:51] overseas at mtu-net dot ru
FYI: MySQL (3.23.xx) under Win32 with
character_set == cp1251
also have problem with LCASE, UCASE.
------------------------------------------------------------------------
[2003-02-09 11:48:55] overseas at mtu-net dot ru
Yes. I tried to do it after reading your comment dated 17 Jan 4:50am
(with link to MSDN). Output is wrong, but...
Every time starting of script containing
setlocale (LC_CTYPE, "Russian_Russia.1251") I have different (!!!)
results... Interest, isn't it?
------------------------------------------------------------------------
[2003-02-09 10:45:14] moriyoshi@php.net
To overseas@mtu-net.ru:
Could you also try
setlocale(LC_CTYPE, "Russian_Russia.1251"?
------------------------------------------------------------------------
[2003-01-28 04:43:28] richard dot cooling at coastdigital dot co dot uk
$text = '<script language="JavaScript" type="text/JavaScript">
alert ("this shouldnt be here");
</script>';
$text =strip_tags($text, $allowed_tags);
$text =ucfirst($text);
print $text;
PHP version 4.3 on win 32.
doesnt uppercase output
alert ("this shouldnt be here");
------------------------------------------------------------------------
[2003-01-17 16:00:29] moriyoshi@php.net
Hmm, you can use mb_convert_case() instead if mbstring extension is
enabled.
http://www.php.net/mb_convert_case
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/21708
--
Edit this bug report at http://bugs.php.net/?id=21708&edit=1