From 862bbcb8e15ce36d061e60302f61dcfbb4709ddd Mon Sep 17 00:00:00 2001
From: Alex Reisner <alex@alexreisner.com>
Date: Fri, 23 Oct 2009 12:41:35 -0400
Subject: [PATCH] Remove code that compensated for Google's ISO 8859-1/UTF-8
 encoding bug (now fixed).

---
 lib/geocoder.rb | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/lib/geocoder.rb b/lib/geocoder.rb
index 0360fd85..13d543d0 100644
--- a/lib/geocoder.rb
+++ b/lib/geocoder.rb
@@ -209,15 +209,10 @@ module Geocoder
   # Query Google for geographic information about the given phrase.
   # Returns the XML response as a hash. This method is not intended for
   # general use (prefer Geocoder.search).
-  # 
-  # Google's XML document has incorrect encoding (says UTF-8 but is actually
-  # ISO 8859-1). We have to fix this or REXML won't parse it correctly.
-  # This may be fixed in the future; see the bug report at:
-  # http://code.google.com/p/gmaps-api-issues/issues/detail?id=233
   #
   def self.search(query)
     if doc = _fetch_xml(query)
-      REXML::Document.new(doc.sub('UTF-8', 'ISO-8859-1'))
+      REXML::Document.new(doc)
     end
   end
   
-- 
GitLab