Skip to content

Commit

Permalink
send passwords in UTF-8, re #58
Browse files Browse the repository at this point in the history
Tested on musicbrainz.org
test.musicbrainz.org was outdated.
  • Loading branch information
JonnyJD committed Apr 24, 2013
1 parent 23c424b commit dd2e45d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions isrcsubmit.py
Original file line number Diff line number Diff line change
Expand Up @@ -406,8 +406,8 @@ def create(self, auth=False):
self.username = user_input()
password = getpass.getpass(
"Please input your MusicBrainz password: ")
# The musicbrainz server seems to accept passwords in latin1"
password = password.decode(sys.stdin.encoding).encode("latin1")
# The musicbrainz server accepts passwords in UTF-8
password = password.decode(sys.stdin.encoding).encode("utf-8")
print("")
if StrictVersion(musicbrainz2_version) >= "0.7.4":
# There is a warning printed above, when < 0.7.4
Expand Down

0 comments on commit dd2e45d

Please sign in to comment.