Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Force the encoding to UTF-8.

  • Loading branch information...
commit 6c137bf808fe59875eaa0fa7777da834ee458b64 1 parent 9b0e37f
@waratuman waratuman authored
Showing with 3 additions and 1 deletion.
  1. +2 −0  lib/mls.rb
  2. +1 −1  mls.gemspec
View
2  lib/mls.rb
@@ -142,6 +142,8 @@ def get(url, params={}, *valid_response_codes, &block)
response = connection.request(req)
handle_response(response, valid_response_codes)
+
+ response.body.force_encoding(Encoding::UTF_8)
if block_given?
yield(response, response.code.to_i)
else
View
2  mls.gemspec
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
Gem::Specification.new do |s|
s.name = "mls"
- s.version = '0.2.52'
+ s.version = '0.2.53'
s.authors = ["James R. Bracy", "Jon Bracy"]
s.email = ["james@42floors.com"]
s.homepage = "http://mls.42floors.com"
Please sign in to comment.
Something went wrong with that request. Please try again.