|  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
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
Have you experienced this issue?
Rate the importance of this bug to you:

 [2011-10-13 17:07 UTC] ryan at ryan-hanekamp dot com
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


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: 

Test script:

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


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2011-10-15 14:13 UTC]
Do you have mbstring enabled? Zend multibyte requires an extension that provide the multibyte functions:
 [2011-10-15 14:13 UTC]
-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: Thu Jul 25 01:01:30 2024 UTC