Skip to content

encoding problem #7

@maindoor

Description

@maindoor

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions