boursorama and bp: convert labels to unicode

This commit is contained in:
Gabriel Kerneis 2012-04-01 14:32:28 +02:00 committed by Romain Bignon
commit 38da7e2565
2 changed files with 4 additions and 2 deletions

View file

@ -22,6 +22,7 @@ from decimal import Decimal
from weboob.capabilities.bank import Account, AccountNotFound
from weboob.tools.browser import BasePage
from weboob.tools.misc import to_unicode
__all__ = ['AccountList']
@ -48,7 +49,7 @@ class AccountList(BasePage):
for line in lines:
account = Account()
tmp = line.xpath("./td//a")[0]
account.label = tmp.text
account.label = to_unicode(tmp.text)
account._link_id = tmp.get("href")
tmp = line.xpath("./td/span/strong")