Permalink
Browse files

add utf-8 header and process responses as utf-8

  • Loading branch information...
1 parent 757d80c commit f372b0cc123ae9b0b02c3a9b1b9264453ad4b650 @n8han n8han committed Apr 24, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 meetup_api_client.py
@@ -16,7 +16,7 @@
# make calls to the Meetup.com API. It requires that you have
# a JSON parsing module available.
-API_JSON_ENCODING = 'ISO-8859-1'
+API_JSON_ENCODING = 'utf-8'
try:
try:
@@ -78,6 +78,7 @@ def __init__(self, api_key):
"""Initializes a new session with an api key that will be added
to subsequent api calls"""
self.api_key = api_key
+ self.opener.addheaders = [('Accept-Charset', 'utf-8')]
def post_rsvp(self, **args):
return self._post(RSVP_URI, **args)

0 comments on commit f372b0c

Please sign in to comment.