i am using http://code.google.com/p/gaema/source/browse/#hg/demos/webapp,
and this is my traceback:
Traceback (most recent call last):
File "D:\Program Files\Google\google_appengine\google\appengine\ext\webapp\__init__.py", line 510, in __call__
handler.get(*groups)
File "D:\gaema\demos\webapp\main.py", line 31, in get
google_auth.get_authenticated_user(self._on_auth)
File "D:\gaema\demos\webapp\gaema\auth.py", line 641, in get_authenticated_user
OpenIdMixin.get_authenticated_user(self, callback)
File "D:\gaema\demos\webapp\gaema\auth.py", line 83, in get_authenticated_user
url = self._OPENID_ENDPOINT + "?" + urllib.urlencode(args)
File "D:\Python25\lib\urllib.py", line 1250, in urlencode
v = quote_plus(str(v))
UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-1: ordinal not in range(128)
how to do this
thanks
updated
i change the code from
args = dict((k, v[-1]) for k, v in self.request.arguments.iteritems())
args["openid.mode"] = u"check_authentication"
url = self._OPENID_ENDPOINT + "?" + urllib.urlencode(args)
to
args = dict((k, v[-1].encode('utf-8')) for k, v in self.request.arguments.iteritems())
args["openid.mode"] = u"check_authentication"
url = self._OPENID_ENDPOINT + "?" + urllib.urlencode(args)
but also error.