python-iwlist icon indicating copy to clipboard operation
python-iwlist copied to clipboard

encoding problem

Open maindoor opened this issue 7 years ago • 0 comments

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.

maindoor avatar May 10 '18 00:05 maindoor