Skip to content

How to handle encoding exceptions #54

@michaeta

Description

@michaeta

Since anyone in the world can upload packages to a pip2 compatible index, there are bound to be issues with displaying characters using various encoding standards. This is mostly a problem with the search command when it tries to display a package name and summary that uses an unknown or unsupported encoding. These problems don't have to stem from pip2 either, they could also be caused by the user's shell. What encodings should pip2 support? How should we handle encoding exceptions when they are raised? Should we skip over the result and notify the user?

Currently pip2 is capable of catching some unicode exceptions, if it encounters one when attempting to display a package's information then it will attempt to print just the package name and skip over the summary (which is what usually causes the exception) . If it is unable to print the package name then pip2 will skip that package and move onto the next.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions