2017 © Pedro Peláez
 

library Diggin-Bridge-Guzzle-AutoCharsetEncodingPlugin

Guzzle Plugin charset auto encoding

image

diggin/Diggin-Bridge-Guzzle-AutoCharsetEncodingPlugin

Guzzle Plugin charset auto encoding

  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Guzzle Plugin - auto convert charset encoding

A bridge Diggin_Http_Charset & Guzzle3 This plugin enable auto convert charset encoding to UTF-8., (*1)

Guzzle4

If you looking for Guzzle4. - https://github.com/sasezaki/guzzle4-charset-subscriber, (*2)

USAGE

  • use in Goutte

``` php <?php, (*3)

use Diggin\Bridge\Guzzle\AutoCharsetEncodingPlugin\AutoCharsetEncodingPlugin;, (*4)

$autoCharsetEncodingPlugin = new AutoCharsetEncodingPlugin;, (*5)

$client = new Goutte\Client; $client->getClient()->getEventDispatcher()->addSubscriber($autoCharsetEncodingPlugin);, (*6)

$crawler = $client->request('GET', 'http://www.kms.gol.com/benkyo/ben1.htm'); $title = $crawler->filterXpath('//title')->text(); echo $title; // ①文書情報マネジメントとは?, (*7)

```, (*8)

The Versions

26/01 2016

dev-master

9999999-dev

Guzzle Plugin charset auto encoding

  Sources   Download

BSD-3-Clause

The Requires

 

guzzle encoding charset goutte