Skip to content

Commit

Permalink
do not try to encode nick/psm to utf-8 when the str() on stringview a…
Browse files Browse the repository at this point in the history
…lready encodes to utf-8
  • Loading branch information
Youness Alaoui committed Aug 27, 2010
1 parent c5ac0c2 commit 65715ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions amsn2/backend/defaultaccountbackend.py
Expand Up @@ -130,11 +130,11 @@ def save_account(self, amsn_account):
emailElmt = SubElement(root_section, "email")
emailElmt.text = amsn_account.view.email
#nick
nick = str(amsn_account.view.nick).encode("utf-8")
nick = str(amsn_account.view.nick)
nickElmt = SubElement(root_section, "nick")
nickElmt.text = nick
#psm
psm = str(amsn_account.view.psm).encode("utf-8")
psm = str(amsn_account.view.psm)
psmElmt = SubElement(root_section, "psm")
psmElmt.text = psm
#presence
Expand Down

0 comments on commit 65715ec

Please sign in to comment.