#45241 [Opn->Bgs]: DOMDocument::loadXML() [domdocument.loadxml]: Unsupported encoding windows-1251
| From: | rrichards@php.net | Date: | Sat, 12 Jul 2008 10:18:21 +0000 |
| Subject: | #45241 [Opn->Bgs]: DOMDocument::loadXML() [domdocument.loadxml]: Unsupported encoding windows-1251 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-126561@lists.php.net to get a copy of this message | ||
ID: 45241
Updated by: rrichards@php.net
Reported By: baxet at mail dot ru
-Status: Open
+Status: Bogus
Bug Type: *General Issues
Operating System: FreeBSD 6.3
PHP Version: 5.2.6
New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions. Due to the volume
of reports we can not explain in detail here why your report is not
a bug. The support channels will be able to provide an explanation
for you.
Thank you for your interest in PHP.
Charset support is based on what your iconv supports. Doesnt appear
that
you have that charset installed on your FreeBSD system.
Previous Comments:
------------------------------------------------------------------------
[2008-06-11 18:22:32] baxet at mail dot ru
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.
------------------------------------------------------------------------
[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