Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add_many with non-ascii content - unicodedecodeerror #52

Open
kapaulm opened this issue Feb 19, 2019 · 1 comment
Open

add_many with non-ascii content - unicodedecodeerror #52

kapaulm opened this issue Feb 19, 2019 · 1 comment

Comments

@kapaulm
Copy link

kapaulm commented Feb 19, 2019

==========================================================>
<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)

@search5
Copy link
Owner

search5 commented Mar 5, 2019

Please let me know what data you have put and I'll check again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants