Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ed3bcb0

Browse files
committed
[DomCrawler] added a note about the default charset
1 parent d0983f0 commit ed3bcb0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Symfony/Component/DomCrawler/Crawler.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,10 @@ public function add($node)
7878
/**
7979
* Adds HTML/XML content.
8080
*
81+
* If the charset is not set via the content type, it is assumed
82+
* to be ISO-8859-1, which is the default charset defined by the
83+
* HTTP 1.1 specification.
84+
*
8185
* @param string $content A string to parse as HTML/XML
8286
* @param null|string $type The content type of the string
8387
*

0 commit comments

Comments
 (0)