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

Unicode error #2

Closed
guinslym opened this issue Jun 6, 2017 · 2 comments
Closed

Unicode error #2

guinslym opened this issue Jun 6, 2017 · 2 comments
Assignees
Labels

Comments

@guinslym
Copy link

guinslym commented Jun 6, 2017

First Thanks for this package!

using: python 3.5.0 on anaconda continuum
I had an issue UnicodeEncodeError: 'charmap' codec can't encode character I couldn't debug it.

~\Documents\GitHub\getsploit [master ≡]> python getsploit.py django
Total found exploits: 41
Web-search URL: https://vulners.com/search?query=bulletinFamily%3Aexploit+AND+django
Traceback (most recent call last):
  File "getsploit.py", line 673, in <module>
    main()
  File "getsploit.py", line 670, in main
    print(outputTable.draw())
  File "C:\Users\Jeffrey\Miniconda3\lib\encodings\cp437.py", line 19, in encode
    return codecs.charmap_encode(input,self.errors,encoding_map)[0]
UnicodeEncodeError: 'charmap' codec can't encode character '\uff09' in position 598: character maps to <undefined>

When I add a return (out[:-1]).encode('utf-8') into line 313 the output is not well formatted.

@vulnersCom vulnersCom added the bug label Jun 6, 2017
@vulnersCom vulnersCom self-assigned this Jun 6, 2017
@vulnersCom vulnersCom added question and removed bug labels Jun 6, 2017
@vulnersCom
Copy link
Owner

vulnersCom commented Jun 6, 2017

Hmm. It looks like it's local problem with encoding on your machine, nope?
I may be wrong, but try to run 'chcp 65001' in your terminal before running the python file

@guinslym
Copy link
Author

guinslym commented Jun 9, 2017

Thanks @vulnersCom for the tip ! It's a machine error.

@guinslym guinslym closed this as completed Jun 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants