Closed adrienverge closed 8 years ago
FYI: It's only since RFC-7617 utf-8 basic auth credentials became officially legal. Previously, RFC-2616 only allowed to use ISO-8859-1 which is basically latin1.
Hey @kxepal, I didn't know, thanks! It's quite recent...
Still, I think python-couchdb should support it. I made a pull-request for this.
Username/password encoding in HTTP basic auth is currently broken for non-ASCII password.
Example with user
user
and passwordunusual-char-é
. With curl it works as expected:But with couchdb-python the string is decoded from
utf-8
then re-encoded intolatin1
, causing an incorrect Authorization header: