From 0ac02e6fe1043311e4c78e7c3d937778eb512d6d Mon Sep 17 00:00:00 2001 From: Dean Clatworthy Date: Thu, 25 Apr 2013 10:06:51 +0300 Subject: [PATCH] Added a note to the dom-crawler docs about character sets --- components/dom_crawler.rst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/components/dom_crawler.rst b/components/dom_crawler.rst index a8c9133679f..3d53e1a9fb7 100644 --- a/components/dom_crawler.rst +++ b/components/dom_crawler.rst @@ -160,6 +160,12 @@ The crawler supports multiple ways of adding the content:: $crawler->add(''); $crawler->add(''); +.. note:: + + When dealing with other character sets than ISO-8859-1, always add HTML content + using the addHTMLContent method where you can specify the second parameter + to be your target character set. + As the Crawler's implementation is based on the DOM extension, it is also able to interact with native :phpclass:`DOMDocument`, :phpclass:`DOMNodeList` and :phpclass:`DOMNode` objects: