<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -4,6 +4,7 @@ require &quot;cgi&quot;
 require &quot;net/https&quot;
 require 'rexml/document'
 require 'logger'
+require 'iconv'
 
 module RShoeboxed
   class Error &lt; StandardError; end;
@@ -114,24 +115,28 @@ module RShoeboxed
       encoded_params.join(&quot;&amp;&quot;)
     end
     
+
     def post_xml(body)
       connection = Net::HTTP.new(API_SERVER, 443)
       connection.use_ssl = true
       connection.verify_mode = OpenSSL::SSL::VERIFY_NONE
-      
+
       request = Net::HTTP::Post.new(API_PATH)
       request.set_form_data({'xml'=&gt;body})
-      
+
       result = connection.start  { |http| http.request(request) }
-      
+
+      # Convert to UTF-8, shoeboxed encodes with ISO-8859-1
+      result_body = Iconv.conv('UTF-8', 'ISO-8859-1', result.body)
+
       if logger.debug?
         logger.debug &quot;Request:&quot;
         logger.debug body
         logger.debug &quot;Response:&quot;
-        logger.debug result.body
+        logger.debug result_body
       end
-      
-      check_for_api_error(result.body)
+
+      check_for_api_error(result_body)
     end
     
     def check_for_api_error(body)</diff>
      <filename>lib/rshoeboxed/connection.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>80c7c8aa2efb27a059d50018da6ec2142db03283</id>
    </parent>
  </parents>
  <author>
    <name>Ben Curren</name>
    <email>ben@outright.com</email>
  </author>
  <url>http://github.com/bcurren/rshoeboxed/commit/cff5b73193dee3e6785c0162f232cf46eaad06d6</url>
  <id>cff5b73193dee3e6785c0162f232cf46eaad06d6</id>
  <committed-date>2009-03-31T16:56:38-07:00</committed-date>
  <authored-date>2009-03-31T16:56:38-07:00</authored-date>
  <message>Use iconv to convert response to UTF-8</message>
  <tree>306590c15213394d446b65e80cb5e6664a0f8a47</tree>
  <committer>
    <name>Ben Curren</name>
    <email>ben@outright.com</email>
  </committer>
</commit>
