We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b75aead + a030bfc commit b871d2fCopy full SHA for b871d2f
lib/intercom/request.rb
@@ -105,7 +105,7 @@ def set_rate_limit_details(response)
105
106
def decode(content_encoding, body)
107
return body if (!body) || body.empty? || content_encoding != 'gzip'
108
- Zlib::GzipReader.new(StringIO.new(body)).read
+ Zlib::GzipReader.new(StringIO.new(body)).read.force_encoding("utf-8")
109
end
110
111
def raise_errors_on_failure(res)
0 commit comments