Skip to content

Commit

Permalink
Statement parser - description pre 2008: Encoding before parsing desc…
Browse files Browse the repository at this point in the history
…ription

Description can contain Norwegian chars.
  • Loading branch information
HNygard committed Jan 28, 2018
1 parent 61fe3cf commit 2b1fa4f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -262,13 +262,13 @@ public static function parseAndReadJan2008Pdf($accountTranslations) {
continue;
}


self::$lasttransactions_description = mb_convert_encoding(self::$lasttransactions_description, 'UTF-8', 'Windows-1252');
self::parseLastDescription($next_is_fee);

$accounts[$last_account]['control_amount'] += $amount;
$accounts[$last_account]['transactions'][] = array(
'bankaccount_id' => $last_account_id,
'description' => mb_convert_encoding(self::$lasttransactions_description, 'UTF-8', 'Windows-1252'),
'description' => self::$lasttransactions_description,
'interest_date' => self::$lasttransactions_interest_date,
'amount' => ($amount / 100),
'payment_date' => self::$lasttransactions_payment_date,
Expand Down

0 comments on commit 2b1fa4f

Please sign in to comment.