From:             baxet at mail dot ru
Operating system: FreeBSD 6.3
PHP version:      5.2.6
PHP Bug Type:     *General Issues
Bug description:  DOMDocument::loadXML() [domdocument.loadxml]: Unsupported 
encoding windows-1251

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 bug report at http://bugs.php.net/?id=45241&edit=1
-- 
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=45241&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): 
http://bugs.php.net/fix.php?id=45241&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=45241&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=45241&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=45241&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=45241&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=45241&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=45241&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=45241&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=45241&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=45241&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=45241&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=45241&r=globals
PHP 4 support discontinued:   http://bugs.php.net/fix.php?id=45241&r=php4
Daylight Savings:             http://bugs.php.net/fix.php?id=45241&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=45241&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=45241&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=45241&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=45241&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=45241&r=mysqlcfg

Reply via email to