<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -37,7 +37,20 @@ module PagSeguro
     
     # Expects the params object from the current request
     def initialize(params)
-      @params = params
+      @params = normalize(params)
+    end
+    
+    # Normalize the specified hash converting all data to UTF-8
+    def normalize(hash)
+      hash.each do |key, value|
+        if value.kind_of?(Hash)
+          hash[key] = normalize(value)
+        else
+          hash[key] = value.to_s.unpack('C*').pack('U*')
+        end
+      end
+      
+      hash
     end
     
     # Return a local URL if developer mode is enabled; this URL </diff>
      <filename>lib/pagseguro/notification.rb</filename>
    </modified>
    <modified>
      <diff>@@ -10,4 +10,4 @@ test:
 production:
   authenticity_token: 9CA8D46AF0C6177CB4C23D76CAF5E4B0
   email: user@example.com
-  return_to: &quot;/pedido/efetuado&quot;
\ No newline at end of file
+  return_to: &quot;/pedido/efetuado&quot;</diff>
      <filename>templates/pagseguro.yml</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>d07fa32955cbc8828afeed24d4ab32c06a09ab28</id>
    </parent>
  </parents>
  <author>
    <name>Nando Vieira</name>
    <email>fnando.vieira@gmail.com</email>
  </author>
  <url>http://github.com/fnando/pagseguro/commit/5324960d698add848edb83c75c3cec1f0c866a8b</url>
  <id>5324960d698add848edb83c75c3cec1f0c866a8b</id>
  <committed-date>2009-10-16T18:59:17-07:00</committed-date>
  <authored-date>2009-10-16T18:59:17-07:00</authored-date>
  <message>PagSeguro always send data in ISO-8859-1; added method to normalize notification data.</message>
  <tree>b67583c0cedede61f48365a8d870cba2488072e3</tree>
  <committer>
    <name>Nando Vieira</name>
    <email>fnando.vieira@gmail.com</email>
  </committer>
</commit>
