python-iwlist
python-iwlist copied to clipboard
encoding problem
Hi,
I am trying to use this library to process scan results and I get a decoding problem:
import iwlist c = iwlist.scan() print (c) Traceback (most recent call last): File "
", line 1, in UnicodeEncodeError: 'ascii' codec can't encode character '\u2019' in position 2092: ordinal not in range(128)
Any reason why this could happen ? I tried different ways to decode instead of utf-8, like cp437 with 'ignore' or 'replace' on errors. Nothing works out.