Doc #62351 [Asn->Csd]: UTF-8 chars fail to be printed out properly with zend.multibyte

From: Date: Thu, 27 Aug 2015 22:08:57 +0000
Subject: Doc #62351 [Asn->Csd]: UTF-8 chars fail to be printed out properly with zend.multibyte
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-12676@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=62351&edit=1 ID: 62351 Updated by: cmb@php.net Reported by: php at sebastianmendel dot de Summary: UTF-8 chars fail to be printed out properly with zend.multibyte -Status: Assigned +Status: Closed Type: Documentation Problem Package: *Configuration Issues Operating System: GNU/Linux PHP Version: 5.4.4 Assigned To: cmb Block user comment: N Private report: N New Comment: This bug has been fixed in the documentation's XML sources. Since the online and downloadable versions of the documentation need some time to get updated, we would like to ask you to be a bit patient. Thank you for the report, and for helping us make our documentation better. Previous Comments: ------------------------------------------------------------------------ [2015-08-27 22:08:31] cmb@php.net Automatic comment from SVN on behalf of cmb Revision: http://svn.php.net/viewvc/?view=revision&amp;revision=337654 Log: documented zend.script_encoding transliteration (fixes #62351) ------------------------------------------------------------------------ [2015-08-27 22:03:50] cmb@php.net Indeed, that's not a bug. And yes, there is an internal transliteration from the declared encoding to mbstring.internal_encoding happening what has to be documented. Therefore I'm changing to doc bug. ------------------------------------------------------------------------ [2013-02-17 06:58:51] wynn dot chen dot cn at gmail dot com it's NOT a bug. after turn on zend.multibyte, just need to enable mbstring extension, and in php.ini, set: mbstring.internal_encoding = utf-8 now everything works fine. test in php-5.4.10, windows2k8. i guess that php convert php-script from declared encoding to mbstring internal_encoding first, and then try to execute the script. and default internal_encoding is something like ASCII, so this problem appears. ------------------------------------------------------------------------ [2013-02-11 16:23:14] alexander dot stehlik at gmail dot com I'm not sure if this issue is related but here is the problem I have with declare(ENCODING = 'utf-8'): Tested PHP Versions: PHP 5.4.6-1ubuntu1.1 (cli) PHP 5.4.6-1ubuntu1.1 (cgi-fcgi) Put this in a file (test.php): <?php declare(ENCODING = 'utf-8') ; //ä ü ö ?> Run php test.php > test.txt In text.txt you can find some unreadable characters. This always occurs if there are special chars in any COMMENTS in the PHP file. ------------------------------------------------------------------------ [2012-12-05 09:46:06] bukin242 at yandex dot ru Please fix in the new versions of php ------------------------------------------------------------------------ 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 https://bugs.php.net/bug.php?id=62351 -- Edit this bug report at https://bugs.php.net/bug.php?id=62351&edit=1

« previous php.doc.bugs (#12676) next »