note 113792 added to simplexml.examples-basic
| From: | RiKdnUA at mail dot ru | Date: | Mon, 02 Dec 2013 21:40:47 +0000 |
| Subject: | note 113792 added to simplexml.examples-basic | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-197725@lists.php.net to get a copy of this message | ||
ÐÑли кодиÑовка XML-докÑменÑа
оÑлиÑаеÑÑÑ Ð¾Ñ UTF-8, обÑÑвление
кодиÑовки должно ÑледоваÑÑ
ÑÑÐ°Ð·Ñ Ð¿Ð¾Ñле version='...' и пеÑед
standalone='...'. ÐÑо ÑÑебование
ÑÑандаÑÑа XML.
If encoding XML-document differs from UTF-8. Encoding declaration should follow immediately after
the version = '...' and before standalone = '...'. This requirement is standard
XML.
<?xml version='1.0' encoding='windows-1251' standalone='yes'?>
Ok
<?xml version='1.0' standalone='yes' encoding='windows-1251'?>
<body>Ð ÑÑÑкий ÑзÑк. Russian language</body>
Fatal error: Uncaught exception 'Exception' with message 'String could not be parsed
as XML' in...
----
Server IP: 193.19.243.212
Probable Submitter: 193.19.243.212 (proxied: 178.216.123.184)
----
Manual Page -- http://php.net/manual/en/simplexml.examples-basic.php
Edit -- https://master.php.net/note/edit/113792
Del: integrated -- https://master.php.net/note/delete/113792/integrated
Del: useless -- https://master.php.net/note/delete/113792/useless
Del: bad code -- https://master.php.net/note/delete/113792/bad+code
Del: spam -- https://master.php.net/note/delete/113792/spam
Del: non-english -- https://master.php.net/note/delete/113792/non-english
Del: in docs -- https://master.php.net/note/delete/113792/in+docs
Del: other reasons-- https://master.php.net/note/delete/113792
Reject -- https://master.php.net/note/reject/113792
Search -- https://master.php.net/manage/user-notes.php