marcwebbie / passpie

:closed_lock_with_key: Multiplatform command-line password manager
http://passpie.readthedocs.org/
MIT License
921 stars 68 forks source link

error ascii codec #10

Closed chtiprog closed 9 years ago

chtiprog commented 9 years ago

1) I added a new credential with an unicode character

➜  ~  pysswords -a
Name: #######
Login: ########  
Password: 
Type again: 
Comment: site français

2) Pysswords throwns an error when listing credentials

➜  ~  pysswords   
ERROR:root:'ascii' codec can't encode characters in position 816-817: ordinal not in range(128)
marcwebbie commented 9 years ago

Hello,

Pysswords doesn't handle unicode input from python2.

For now to fix your credential you can open the Pysswords for your credential and edit the comment manually this time using no unicode character.

for example, for a credential with Name: "example.com" and a login: "john" and a Pyssword database at the default path: "~/.pysswords" you can do:

{EDITOR} ~/.pysswords/example.com/john.pyssword

Thanks for opening this issue.