Bug 259605 - Detect encoding when update an online quote
Summary: Detect encoding when update an online quote
Status: RESOLVED FIXED
Alias: None
Product: kmymoney
Classification: Applications
Component: general (show other bugs)
Version: SVN
Platform: Compiled Sources Linux
: NOR minor
Target Milestone: ---
Assignee: KMyMoney Devel Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-12 14:55 UTC by Jose Arthur Benetasso Villanova
Modified: 2010-12-12 18:59 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
Detect encoding and convert it no unicode (1.20 KB, patch)
2010-12-12 14:55 UTC, Jose Arthur Benetasso Villanova
Details

Note You need to log in before you can comment on or make changes to this bug.
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