Detect encoding in Response::text() (#256)

* Detect encoding and decode text response

Fixes #246

* Try to get encoding from Content-Type header

* Remove uchardet encoding detection for now

* Add non utf-8 test case for Response::text()

* Reduce copies
This commit is contained in:
messense
2018-02-16 03:01:57 +08:00
committed by Sean McArthur
parent f241fce38d
commit 0203fad886
4 changed files with 66 additions and 3 deletions

View File

@@ -129,6 +129,7 @@
//! [cookiejar_issue]: https://github.com/seanmonstar/reqwest/issues/14
extern crate bytes;
extern crate encoding_rs;
#[macro_use]
extern crate futures;
extern crate hyper;