honeynet / droidbot

A lightweight test input generator for Android. Similar to Monkey, but with more intelligence and cool features!
MIT License
812 stars 234 forks source link

Fixed UnicodeEncodeError 'charmap' codec can't encode character error #97

Closed codeslord closed 5 years ago

codeslord commented 5 years ago

Fixed the below exception( Tested in python 3 environment windows)

Exception in thread Thread-5: Traceback (most recent call last): File "...lib\threading.py", line 917, in _bootstrap_inner self.run() File "...lib\threading.py", line 865, in run self._target(*self._args, **self._kwargs) File "...droidbot\adapter\logcat.py", line 61, in handle_output f.write(line) File "...lib\encodings\cp1252.py", line 19, in encode return codecs.charmap_encode(input,self.errors,encoding_table)[0] UnicodeEncodeError: 'charmap' codec can't encode character '\uff1a' in position 53: character maps to