php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #60057 declare(encoding="UTF-8")=="Unsupported encoding"
Submitted: 2011-10-13 17:07 UTC Modified: 2013-02-18 00:35 UTC
Votes:2
Avg. Score:3.0 ± 2.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: ryan at ryan-hanekamp dot com Assigned:
Status: No Feedback Package: Unicode Engine related
PHP Version: 5.4.0beta1 OS: Vista Home Premium SP2
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: ryan at ryan-hanekamp dot com
New email:
PHP Version: OS:

 

 [2011-10-13 17:07 UTC] ryan at ryan-hanekamp dot com
Description:
------------
This is on the precompiled Windows QA NTS build 2011-Sep-15 14:27:38, running on Apache 2.2 as CGI.

Multibyte support is now included by default, and my php.ini file includes "zend.multibyte = On" as a directive. Any script that includes the line

declare(encoding="UTF-8");

Triggers this warning:

Warning: Unsupported encoding [UTF-8] in XXX on line YYY

I have tried changing case and removing the dash. Presuming this derives from the same functionality as Multibyte Strings, this should be the correct name for this encoding: http://us2.php.net/manual/en/mbstring.supported-encodings.php 


Test script:
---------------
declare(encoding="UTF-8");

Expected result:
----------------
Silent parsing of the script as UTF-8.

Actual result:
--------------
Warning: Unsupported encoding [UTF8] in H:\webserver\pd\wwwroot\qwertyuiop\index.php on line 1


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-10-15 14:13 UTC] cataphract@php.net
Do you have mbstring enabled? Zend multibyte requires an extension that provide the multibyte functions:

http://lxr.php.net/xref/PHP_TRUNK/Zend/zend_multibyte.c#multibyte_functions
 [2011-10-15 14:13 UTC] cataphract@php.net
-Status: Open +Status: Feedback
 [2013-02-18 00:35 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 16:01:28 2024 UTC