Skip to content

add_many with non-ascii content - unicodedecodeerror #52

Description

@kapaulm

==========================================================>
<type 'exceptions.UnicodeDecodeError'>


'ascii' codec can't decode byte 0xd0 in position 87: ordinal not in range(128)

Traceback (most recent call last):
File "c:\Python27\lib\site-packages\solr\core.py", line 334, in wrapper
return self._update(content, query)
File "c:\Python27\lib\site-packages\solr\core.py", line 559, in _update
rsp = self._post(selector, request, self.xmlheaders)
File "c:\Python27\lib\site-packages\solr\core.py", line 655, in _post
self.conn.request('POST', url, body.encode('UTF-8'), _headers)
File "c:\Python27\lib\httplib.py", line 973, in request
self._send_request(method, url, body, headers)
File "c:\Python27\lib\httplib.py", line 1007, in _send_request
self.endheaders(body)
File "c:\Python27\lib\httplib.py", line 969, in endheaders
self._send_output(message_body)
File "c:\Python27\lib\httplib.py", line 827, in _send_output
msg += message_body
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 87: ordinal not in range(128)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions