note 128016 added to intro.dom
| From: | greezlykz at gmail dot com | Date: | Wed, 14 Dec 2022 07:48:59 +0000 |
| Subject: | note 128016 added to intro.dom | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-219972@lists.php.net to get a copy of this message | ||
you can use below code to load html in utf-8 format. It is not enough that your encoding is in
utf-8.
$doc = new DOMDocument();
$doc->loadHTML('<?xml encoding="UTF-8">' . $html);
----
Server IP: 45.112.84.4
Probable Submitter: 185.85.3.175 (proxied: 37.99.45.239)
----
Manual Page -- https://php.net/manual/en/intro.dom.php
Edit -- https://main.php.net/note/edit/128016
Del: integrated -- https://main.php.net/note/delete/128016/integrated
Del: useless -- https://main.php.net/note/delete/128016/useless
Del: bad code -- https://main.php.net/note/delete/128016/bad+code
Del: spam -- https://main.php.net/note/delete/128016/spam
Del: non-english -- https://main.php.net/note/delete/128016/non-english
Del: in docs -- https://main.php.net/note/delete/128016/in+docs
Del: other reasons-- https://main.php.net/note/delete/128016
Reject -- https://main.php.net/note/reject/128016
Search -- https://main.php.net/manage/user-notes.php