fix unicode issue
This commit is contained in:
parent
79769265cf
commit
8cbdd1fa29
1 changed files with 2 additions and 1 deletions
|
|
@ -75,7 +75,8 @@ class AccountsPage(CDNBasePage):
|
||||||
for line in data:
|
for line in data:
|
||||||
a = Account()
|
a = Account()
|
||||||
a.id = line[self.COL_ID].replace(' ','')
|
a.id = line[self.COL_ID].replace(' ','')
|
||||||
a.label = self.parser.tocleanstring(self.parser.parse(StringIO(line[self.COL_LABEL])).xpath('//div[@class="libelleCompteTDB"]')[0])
|
fp = StringIO(unicode(line[self.COL_LABEL]).encode(self.browser.ENCODING))
|
||||||
|
a.label = self.parser.tocleanstring(self.parser.parse(fp, self.browser.ENCODING).xpath('//div[@class="libelleCompteTDB"]')[0])
|
||||||
a.balance = Decimal(FrenchTransaction.clean_amount(line[self.COL_BALANCE]))
|
a.balance = Decimal(FrenchTransaction.clean_amount(line[self.COL_BALANCE]))
|
||||||
a._link = self.get_history_link()
|
a._link = self.get_history_link()
|
||||||
a._execution = self.get_execution()
|
a._execution = self.get_execution()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue