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

LookupError: unknown encoding: 'unicode' #56

Closed
CABowers opened this issue Aug 29, 2016 · 4 comments
Closed

LookupError: unknown encoding: 'unicode' #56

CABowers opened this issue Aug 29, 2016 · 4 comments

Comments

@CABowers
Copy link

When running on windows the error "LookupError: unknown encoding: 'unicode'" is thrown on line 226 of selector.py. This happened when scrapping from a webpage.

@CABowers
Copy link
Author

A quick fix for me was to change 'unicode' to 'utf8' on line 226 of selector.py

@kmike
Copy link
Member

kmike commented Aug 29, 2016

What is your lxml version?

@CABowers
Copy link
Author

CABowers commented Aug 29, 2016

I had 2.2.8 not 3.6.4, I updated and that also fixed the problem.

On Mon, Aug 29, 2016 at 4:33 AM, Mikhail Korobov notifications@github.com
wrote:

What is your lxml version?


You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
#56 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/ANh_w-F5xkzBk942fuO8j2ArJrLTmWFEks5qkplFgaJpZM4JvFHD
.

@perfectans
Copy link

Here is a List Of Supported Encoding. You can Use Your preferred encoding from It. Some of the most used encodings are utf-8, asci, latin-1 and utf-32. You can use it like below.

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

3 participants