Traceback: File "/usr/local/lib/python2.6/site-packages/django/core/handlers/base.py" in get_response 92. response = callback(request, *callback_args, **callback_kwargs) File "/home/sandy/git-gnome/snowy/notes/views.py" in note_detail 66. doc = libxml2.parseDoc(template.replace('%%%CONTENT%%%', note.content)) File "/usr/lib/python2.6/site-packages/libxml2.py" in parseDoc 1262. ret = libxml2mod.xmlParseDoc(cur) Exception Type: UnicodeEncodeError at /test/notes/334/oauth-authorization-header/ Exception Value: ('ascii', u'\n\n The OAuth Protocol Parameters are sent in the Authorization header the following way:\n\nParameter names and values are encoded per Parameter Encoding.\nFor each parameter, the name is immediately followed by an \u2018=\u2019 character (ASCII code 61), a \u2018\u201d\u2019 character (ASCII code 34), the parameter value (MAY be empty), and another \u2018\u201d\u2019 character (ASCII code 34).\nParameters are separated by a comma character (ASCII code 44) and OPTIONAL linear whitespace per [RFC2617].\nThe OPTIONAL realm parameter is added and interpreted per [RFC2617], section 1.2.\n\nAuthorization: OAuth realm="http://sp.example.com/",\n oauth_consumer_key="0685bd9184jfhq22",\n oauth_token="ad180jjd733klru7",\n oauth_signature_method="HMAC-SHA1",\n oauth_signature="wOJIO9A2W5mFwDgiDvZbTSMK%2FPY%3D",\n oauth_timestamp="137131200",\n oauth_nonce="4572616e48616d6d65724c61686176",\n oauth_version="1.0"\n\nhttp://oauth.net/core/1.0/#auth_header\n', 450, 451, 'ordinal not in range(128)')