1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 13:12:50 +01:00

Fixes for special character encoding

This commit is contained in:
David Bomba 2021-09-08 07:05:53 +10:00
parent 57602952e9
commit 9458069abb
2 changed files with 3 additions and 2 deletions

View File

@ -55,7 +55,7 @@ class QueryLogging
// nlog("Query count = {$count}");
if($count > 175){
nlog("Quer count = {$count}");
nlog("Query count = {$count}");
nlog($queries);
}

View File

@ -76,7 +76,8 @@ class CreditCard
private function decodeUnicodeString($string)
{
return iconv("UTF-8", "ISO-8859-1//TRANSLIT", $this->decode_encoded_utf8($string));
return html_entity_decode($string, ENT_QUOTES, 'UTF-8');
// return iconv("UTF-8", "ISO-8859-1//TRANSLIT", $this->decode_encoded_utf8($string));
}
private function decode_encoded_utf8($string){