faraday-encoding icon indicating copy to clipboard operation
faraday-encoding copied to clipboard

Default encoding

Open crawler opened this issue 4 years ago • 1 comments

Add the ability to set the default encoding for the responses that do not contain charset directive.

Faraday::Encoding.default_encoding = Encoding::UTF_8

crawler avatar Nov 26 '20 11:11 crawler

@crawler Thank you for your pull request!

I'm not sure why do we support this feature. Please provide me more information.

The faraday-encoding gem assumes the situation when a server provides content-type header with charset. So i think that this gem would not like to affect any modification to the response if there is no charset header.

ma2gedev avatar Dec 07 '20 13:12 ma2gedev