ID: 47742 Updated by: j...@php.net Reported By: fsb at thefsb dot org -Status: Open +Status: Feedback Bug Type: mbstring related Operating System: os x PHP Version: 5.2.9 -Assigned To: +Assigned To: fb-req-jani New Comment:
Please try using this CVS snapshot: http://snaps.php.net/php5.2-latest.tar.gz For Windows: http://windows.php.net/snapshots/ Please do. :) Previous Comments: ------------------------------------------------------------------------ [2009-05-07 13:57:28] fsb at thefsb dot org jani, that looks like an improvement. should i try out the may 7 snapshot? ------------------------------------------------------------------------ [2009-05-06 21:10:01] j...@php.net Ignore the previous, this bad bug system messed up the input. :) Here's the actual stuff: http://pecl.php.net/~jani/bug47742.out ------------------------------------------------------------------------ [2009-05-06 21:07:33] j...@php.net This script: <?php $s = 'Χιόνια, βροχές και θυελλώδεις άνεμοι συνθέτουν το'; echo "orig: $s\n"; $s = mb_strtoupper($s); echo "mb_strtoupper: $s\n"; $s = mb_convert_case($s, MB_CASE_UPPER, "UTF-8"); echo "mb_convert_case (upper): $s\n"; $s = mb_strtolower($s); echo "mb_strtolower: $s\n"; $s = mb_convert_case($s, MB_CASE_LOWER, "UTF-8"); echo "mb_convert_case (lower): $s\n"; ?> Outputs: orig: Χιόνια, βροχές και θυελλώδεις άνεμοι συνθέτουν το mb_strtoupper: ΧΙΌΝΙΑ, ΒΡΟΧΈΣ ΚΑΙ ΘΥΕΛΛΏΔΕΙΣ ΆΝΕΜΟΙ ΣΥΝΘΈΤΟΥΝ ΤΟ mb_convert_case (upper): ΧΙΌΝΙΑ, ΒΡΟΧΈΣ ΚΑΙ ΘΥΕΛΛΏΔΕΙΣ ΆΝΕΜΟΙ ΣΥΝΘΈΤΟΥΝ ΤΟ mb_strtolower: χιόνια, βροχέσ και θυελλώδεισ άνεμοι συνθέτουν το mb_convert_case (lower): χιόνια, βροχέσ και θυελλώδεισ άνεμοι συνθέτουν το And this is quite correct.. ------------------------------------------------------------------------ [2009-05-05 11:37:26] fsb at thefsb dot org in both test scripts i provided yesterday, the character set is unicode and the encoding is utf-8. in the short test script that i provided 4 May 7:02pm UTC, there is only one short Hangul test string and no Greek, as you said. in the longer test script i provided at 4 May 5:00pm UTC, several alphabets are used including Greek, Cyrillic, Hebrew, Arabic, Thai, Kanji, ... in case it makes life easier for you, i put the longer test script on a web server: http://tomworster.net/test.php.gz it's only 1kbyte. ------------------------------------------------------------------------ [2009-05-05 02:02:39] j...@php.net One last question: What is the charset you used? I don't see any greek chars anywhere.. ;) ------------------------------------------------------------------------ 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/47742 -- Edit this bug report at http://bugs.php.net/?id=47742&edit=1