|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2012-12-05 09:46 UTC] bukin242 at yandex dot ru
[2013-02-11 16:23 UTC] alexander dot stehlik at gmail dot com
[2013-02-17 06:58 UTC] wynn dot chen dot cn at gmail dot com
[2015-08-27 22:03 UTC] cmb@php.net
-Type: Bug
+Type: Documentation Problem
-Package: Unicode Engine related
+Package: *Configuration Issues
-Assigned To:
+Assigned To: cmb
[2015-08-27 22:03 UTC] cmb@php.net
[2015-08-27 22:08 UTC] cmb@php.net
[2015-08-27 22:08 UTC] cmb@php.net
-Status: Assigned
+Status: Closed
[2015-08-27 22:08 UTC] cmb@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 06 10:00:01 2025 UTC |
Description: ------------ Enabling zend.multibyte and having declare(encoding = UTF-8) in UTF-8 encoded scripts does not print UTF-8 chars properly. Same script (still encoded as UTF-8) but with declare(encoding = ISO-8859-1) prints out UTF-8 chars correct. >/opt/phpfarm/inst/bin/php-5.4.4 -i | grep multi zend.multibyte => On => On >/opt/phpfarm/inst/bin/php-5.4.4 -i | grep UTF default_charset => UTF-8 => UTF-8 zend.script_encoding => UTF-8 => UTF-8 exif.encode_unicode => UTF-8 => UTF-8 iconv.input_encoding => UTF-8 => UTF-8 iconv.internal_encoding => UTF-8 => UTF-8 iconv.output_encoding => UTF-8 => UTF-8 LANG => de_DE.UTF-8 _SERVER["LANG"] => de_DE.UTF-8 Test script: --------------- <?php declare(encoding = 'UTF-8'); echo htmlspecialchars('"aäaß', ENT_QUOTES | ENT_IGNORE, 'UTF-8'); echo "\n" . '"aäaß'; ?> Expected result: ---------------- "aäaß "aäaß Actual result: -------------- "aa "a▒a▒