#45241 [Opn]: DOMDocument::loadXML() [domdocument.loadxml]: Unsupported encoding windows-1251
| From: | baxet at mail dot ru | Date: | Wed, 11 Jun 2008 18:22:32 +0000 |
| Subject: | #45241 [Opn]: DOMDocument::loadXML() [domdocument.loadxml]: Unsupported encoding windows-1251 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-125692@lists.php.net to get a copy of this message | ||
ID: 45241
User updated by: baxet at mail dot ru
Reported By: baxet at mail dot ru
Status: Open
Bug Type: *General Issues
Operating System: FreeBSD 6.3
PHP Version: 5.2.6
New Comment:
Warning: DOMDocument::loadXML() [domdocument.loadxml]: Unsupported
encoding windows-1251 in Entity, line: 1 in /var/www/html/test.php on
line 2
- I get error what windows-1251 not supported under FreeBSD6.3
Same php script in CentOS5.1 works fine - I'm get this error only on
FreeBSD.
Please help me to resolve this problem. Thanks.
Previous Comments:
------------------------------------------------------------------------
[2008-06-11 17:41:53] baxet at mail dot ru
Description:
------------
http://80.90.118.34/test.php
Warning: DOMDocument::loadXML() [domdocument.loadxml]: Unsupported
encoding windows-1251 in Entity, line: 1 in /var/www/html/test.php on
line 2
- I get error what windows-1251 not supported under FreeBSD6.3
Same php script in CentOS5.1 works fine - I'm get this error only on
FreeBSD.
Please help me to resolve this problem. Thanks.
Reproduce code:
---------------
test.php
<?
DOMDocument::loadXML(file_get_contents("2.xsl"));
?>
2.xsl
<?xml version="1.0" encoding="windows-1251"?>
Expected result:
----------------
This code must works without this error
Actual result:
--------------
Warning: DOMDocument::loadXML() [domdocument.loadxml]: Unsupported
encoding windows-1251 in Entity, line: 1 in /var/www/html/test.php on
line 2
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=45241&edit=1