cvs: phpdoc /en/reference/xml/functions xml-parser-create.xml
| From: | Jakub Vrana | Date: | Fri, 17 Sep 2004 13:30:26 +0000 |
| Subject: | cvs: phpdoc /en/reference/xml/functions xml-parser-create.xml | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969364098@lists.php.net to get a copy of this message | ||
vrana Fri Sep 17 09:30:26 2004 EDT
Modified files:
/phpdoc/en/reference/xml/functions xml-parser-create.xml
Log:
Empty string as encoding (bug #27808)
http://cvs.php.net/diff.php/phpdoc/en/reference/xml/functions/xml-parser-create.xml?r1=1.8&r2=1.9&ty=u
Index: phpdoc/en/reference/xml/functions/xml-parser-create.xml
diff -u phpdoc/en/reference/xml/functions/xml-parser-create.xml:1.8
phpdoc/en/reference/xml/functions/xml-parser-create.xml:1.9
--- phpdoc/en/reference/xml/functions/xml-parser-create.xml:1.8 Wed Sep 15 15:12:41 2004
+++ phpdoc/en/reference/xml/functions/xml-parser-create.xml Fri Sep 17 09:30:25 2004
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.8 $ -->
+<!-- $Revision: 1.9 $ -->
<!-- splitted from ./en/functions/xml.xml, last change in rev 1.2 -->
<refentry id="function.xml-parser-create">
<refnamediv>
@@ -23,7 +23,9 @@
encoding is automatically detected, so that the
<parameter>encoding</parameter> parameter specifies only the output
encoding. In PHP 4, the default output encoding is the same as the
- input charset. In PHP 5.0.0 and 5.0.1, the default output charset is
+ input charset. If empty string is passed, the parser attempts to identify
+ which encoding the document is encoded in by looking at the heading 3 or
+ 4 bytes. In PHP 5.0.0 and 5.0.1, the default output charset is
ISO-8859-1, while in PHP 5.0.2 and upper is UTF-8. The supported
encodings are <literal>ISO-8859-1</literal>, <literal>UTF-8</literal>
and
<literal>US-ASCII</literal>.