<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -10,20 +10,6 @@ require &quot;rubygems&quot;
 require &quot;hpricot&quot;
 Net::HTTP.version_1_2
 
-
-if RUBY_VERSION &lt; &quot;1.9.0&quot;
-  
-  class String
-      
-      def force_encoding(encoding)
-        return self
-      end
-      
-  end
-  
-end
-
-
 module GoogleSpreadsheet
     
     # Authenticates with given +mail+ and +password+, and returns GoogleSpreadsheet::Session
@@ -101,7 +87,11 @@ module GoogleSpreadsheet
         end
         
         def as_utf8(str)
-          str.force_encoding(&quot;UTF-8&quot;)
+          if str.respond_to?(:force_encoding)
+            str.force_encoding(&quot;UTF-8&quot;)
+          else
+            str
+          end
         end
         
     end</diff>
      <filename>lib/google_spreadsheet.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>a46e19285ae7b50cc535ee3ee71fff879a0c0cfb</id>
    </parent>
  </parents>
  <author>
    <name>Jade Meskill</name>
    <email>jade@integrumtech.com</email>
  </author>
  <url>http://github.com/gimite/google-spreadsheet-ruby/commit/7547a74ad8a1ea8e9cc62e3ed6b281e5a0368872</url>
  <id>7547a74ad8a1ea8e9cc62e3ed6b281e5a0368872</id>
  <committed-date>2009-11-06T19:25:07-08:00</committed-date>
  <authored-date>2009-11-06T15:26:44-08:00</authored-date>
  <message>check for force encoding insted of defining it</message>
  <tree>3146433d9efe25b45c10d9c350d91fbcf13ea4d2</tree>
  <committer>
    <name>Hiroshi Ichikawa</name>
    <email>gimite@gmail.com</email>
  </committer>
</commit>
