php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #45241 DOMDocument::loadXML() [domdocument.loadxml]: Unsupported encoding windows-1251
Submitted: 2008-06-11 17:41 UTC Modified: 2008-07-12 10:18 UTC
Votes:3
Avg. Score:5.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: baxet at mail dot ru Assigned:
Status: Not a bug Package: *General Issues
PHP Version: 5.2.6 OS: FreeBSD 6.3
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: baxet at mail dot ru
New email:
PHP Version: OS:

 

 [2008-06-11 17:41 UTC] 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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-06-11 18:22 UTC] 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-07-12 10:18 UTC] rrichards@php.net
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.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 03 12:01:33 2025 UTC