Fix UTF-8 encoding issue with weather segment

Closes #172.
This commit is contained in:
Kim Silkebækken 2013-02-06 08:51:55 +01:00
parent 56e661b21b
commit e3ce4adc3d
1 changed files with 2 additions and 2 deletions

View File

@ -135,8 +135,8 @@ def weather(unit='c', location_query=None):
return None
query_data = {
'q':
'use "http://github.com/yql/yql-tables/raw/master/weather/weather.bylocation.xml" as we;'
'select * from we where location="{0}" and unit="{1}"'.format(location_query, unit),
u'use "http://github.com/yql/yql-tables/raw/master/weather/weather.bylocation.xml" as we;'
u'select * from we where location="{0}" and unit="{1}"'.format(location_query, unit).encode('utf-8'),
'format': 'json'
}
try: