symfony/symfony — Issue #3519: [crawler] Problem with charset
Author: ajanota
Created: 2012-03-06 14:53:40+00:00
State: open

When I visit page (with charset UTF-8) via GoutteDriver I receive page with invalid national chars (Behat\Mink\Session::getPage()->getText()).

Symfony\Bundle\FrameworkBundle\Client::request() method creates crawler.
Crawler in Symfony\Component\DomCrawler\Crawler::addContent() receives $type argument ('text/html' in my case).
Next should be set correct charset, but method always exits with value of $charset variable = 'ISO-8859-1'.