<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -20,7 +20,7 @@ class RWeather
   def self.key=(value); @@key = value; end
 
   def self.search(where)
-    if data = get_and_parse(sprintf(SEARCH_URL, where))
+    if data = get_and_parse(sprintf(SEARCH_URL, URI.encode(where)))
       data['loc'].map{|loc| RWeatherLocation.new(loc['type'], loc['id'], loc['content'])}
     end
   end
@@ -30,7 +30,7 @@ class RWeather
     url = sprintf(LOCAL_URL, location_id, partner_id, key)
     url &lt;&lt; &quot;&amp;cc=true&quot;
     url &lt;&lt; &quot;&amp;unit=#{unit}&quot; if VALID_UNITS.include?(unit)
-    if data = get_and_parse(url)
+    if data = get_and_parse(URI.encode(url))
       RWeatherCurrentCondition.parse(data)
     end
   end</diff>
      <filename>lib/r_weather.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>73cad8e1452d9dbc493395336d2ad1a4ecedf32e</id>
    </parent>
  </parents>
  <author>
    <name>Carlos Kozuszko</name>
    <email>ckozus@gmail.com</email>
  </author>
  <url>http://github.com/ckozus/rweather/commit/6f963e4a3ee1d7208a395e6f80b3272fb3e20c79</url>
  <id>6f963e4a3ee1d7208a395e6f80b3272fb3e20c79</id>
  <committed-date>2008-09-06T13:51:59-07:00</committed-date>
  <authored-date>2008-09-06T13:51:59-07:00</authored-date>
  <message>Encoding request urls</message>
  <tree>3bcb55ee6a95183c0f6a9cb1a5022a787270ca84</tree>
  <committer>
    <name>Carlos Kozuszko</name>
    <email>ckozus@gmail.com</email>
  </committer>
</commit>
