Bug 259605

Summary: Detect encoding when update an online quote
Product: [Applications] kmymoney Reporter: Jose Arthur Benetasso Villanova <jose.arthur>
Component: generalAssignee: KMyMoney Devel Mailing List <kmymoney-devel>
Status: RESOLVED FIXED    
Severity: minor    
Priority: NOR    
Version: SVN   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Detect encoding and convert it no unicode

Description Jose Arthur Benetasso Villanova 2010-12-12 14:55:35 UTC
Created attachment 54458 [details]
Detect encoding and convert it no unicode

Some banks use iso-8859-1 or other encoding in their pages. Because of this, regular expressions with accents fails to match. Example:

Page:
https://webp.caixa.gov.br/fundos/lista_fundos_voce.asp?Link=voce&flag_internet=

Regular expression:
FI AÇÕES PETROBRAS&nbsp 10\/07\/00 1,50 \d{2,2}/\d{2,2}/\d{2,2}&nbsp&nbsp (\d+,\d+)

Attached, a patch to mitigate the problem.

azlev.
Comment 1 Thomas Baumgart 2010-12-12 18:30:28 UTC
SVN commit 1205823 by tbaumgart:

Detect and use correct character decoder when scanning web-pages for price information

BUG: 259605

 M  +7 -1      webpricequote.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1205823
Comment 2 Thomas Baumgart 2010-12-12 18:59:03 UTC
SVN commit 1205826 by tbaumgart:

Detect and use correct character decoder when scanning web-pages for price information

Backported to stable branch

BUG: 259605

 M  +7 -1      webpricequote.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1205826