We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d875dc0 + 0ac02e6 commit 32faf96Copy full SHA for 32faf96
components/dom_crawler.rst
@@ -160,6 +160,12 @@ The crawler supports multiple ways of adding the content::
160
$crawler->add('<html><body /></html>');
161
$crawler->add('<root><node /></root>');
162
163
+.. note::
164
+
165
+ When dealing with other character sets than ISO-8859-1, always add HTML content
166
+ using the addHTMLContent method where you can specify the second parameter
167
+ to be your target character set.
168
169
As the Crawler's implementation is based on the DOM extension, it is also able
170
to interact with native :phpclass:`DOMDocument`, :phpclass:`DOMNodeList`
171
and :phpclass:`DOMNode` objects:
0 commit comments