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

UnicodeEncodeError #101

Open
pieroandreini opened this issue Nov 7, 2017 · 5 comments
Open

UnicodeEncodeError #101

pieroandreini opened this issue Nov 7, 2017 · 5 comments

Comments

@pieroandreini
Copy link

pieroandreini commented Nov 7, 2017

Same issue on raspberry pi2 (Kali 3.2) and Nexus5 (Kali Nethunter 3.2)

Traceback (most recent call last):
File "/opt/xerosploit/xerosploit.py", line 980, in main
home()
File "/opt/xerosploit/xerosploit.py", line 89, in home
print (tabulate(table, stralign="center",tablefmt="fancy_grid",headers="firstrow"))
UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-78: ordinal not in range(128)

solved adding .encode('utf-8') to line 89:
print (tabulate(table, stralign="center",tablefmt="fancy_grid",headers="firstrow")).encode('utf-8')

same for all the lines
print(table.table)

to the following:
print(table.table).encode('utf-8')

@r4ym0n
Copy link

r4ym0n commented Nov 12, 2017

I got the same problem.

@pfftdammitchris
Copy link

Read the fix at: #88

@r4ym0n
Copy link

r4ym0n commented Feb 10, 2018

thx!

@1n1t6Sh3ll
Copy link

I got same problem how to solve bro tell me plz

@aladdinsparta
Copy link

Traceback (most recent call last):
File "xerosploit.py", line 980, in main
home()
File "xerosploit.py", line 89, in home
print (tabulate(table, stralign="center",tablefmt="fancy_grid",headers="firstrow"))
UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-72: ordinal not in range(128)
[aladdinx@aladdinx ~]$
arch linux ??

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

5 participants