Skip to content

Added a note to the dom-crawler docs about character sets #2550

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 4, 2013
Merged

Added a note to the dom-crawler docs about character sets #2550

merged 1 commit into from
May 4, 2013

Conversation

deanc
Copy link
Contributor

@deanc deanc commented Apr 25, 2013

I added a note to the documentation to make it clear that when adding content using the default examples, the charset is assumed to be ISO-8859-1. If one wants to crawl/scrape UTF-8 documents, they should create a blank object and use addHTMLContent and specify the character set.

Q A
Doc fix? yes
New docs? no
Applies to 2.0+
Fixed tickets n/a

@@ -160,6 +160,12 @@ The crawler supports multiple ways of adding the content::
$crawler->add('<html><body /></html>');
$crawler->add('<root><node /></root>');

.. note::
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think a .. caution:: directive is better

weaverryan added a commit that referenced this pull request May 4, 2013
Added a note to the dom-crawler docs about character sets
@weaverryan weaverryan merged commit 32faf96 into symfony:2.0 May 4, 2013
@weaverryan
Copy link
Member

Hey Dean!

Very nice note - thanks for contributing it!

Cheers!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants