Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit f372b0cc123ae9b0b02c3a9b1b9264453ad4b650 1 parent 757d80c
@n8han n8han authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  meetup_api_client.py
View
3  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)
Please sign in to comment.
Something went wrong with that request. Please try again.