deibit/cansina

some page may cause encode error?

joeycold opened this issue · 4 comments

Hi,
can you help me to solve this error
[ 0%] - 2h15m41s - /global.mdbUnknown exception: 'ascii' codec can't encode characters in position 1-4: ordinal not in range(128) File "./cansina.py", line 375, in
if not manager.get_a_task(visitors_alive):
File "/home/test/cansina/core/dbmanager.py", line 57, in get_a_task
Console.body(task)
File "/home/test/cansina/core/printer.py", line 157, in body
t_encode, content_type)
None
Finishing...Task took 11 seconds

Hi there. I need to gather some information before:

Are you using last version from the repository?
Which Python version?
May you bring me the offending payload file?

Thanks for reporting it!

thank you for reply.
yes, just download last version ,i use the python 2.7.12 on ubuntu,and when i switch to python 3 now,the error has gone.

Thanks for the reply. Yes, some files contains exotic characters Python2 and, my fault, I still struggle understanding how to deal with them. Usually Python3 is the straight solution.

ok,thank you for the awesome tool!!