diff --git a/app/Export/CSV/ActivityExport.php b/app/Export/CSV/ActivityExport.php index 8de117615352..81c531cb464a 100644 --- a/app/Export/CSV/ActivityExport.php +++ b/app/Export/CSV/ActivityExport.php @@ -122,6 +122,7 @@ class ActivityExport extends BaseExport //load the CSV document from a string $this->csv = Writer::createFromString(); + \League\Csv\CharsetConverter::addTo($this->csv, 'UTF-8', 'UTF-8'); //insert the header $this->csv->insertOne($this->buildHeader()); diff --git a/app/Export/CSV/ClientExport.php b/app/Export/CSV/ClientExport.php index 5a5b43912992..736b2285c098 100644 --- a/app/Export/CSV/ClientExport.php +++ b/app/Export/CSV/ClientExport.php @@ -144,6 +144,7 @@ class ClientExport extends BaseExport //load the CSV document from a string $this->csv = Writer::createFromString(); + \League\Csv\CharsetConverter::addTo($this->csv, 'UTF-8', 'UTF-8'); //insert the header $this->csv->insertOne($this->buildHeader()); diff --git a/app/Export/CSV/ContactExport.php b/app/Export/CSV/ContactExport.php index 38c9b1fdd87b..b7e2c0e52dda 100644 --- a/app/Export/CSV/ContactExport.php +++ b/app/Export/CSV/ContactExport.php @@ -76,6 +76,7 @@ class ContactExport extends BaseExport //load the CSV document from a string $this->csv = Writer::createFromString(); + \League\Csv\CharsetConverter::addTo($this->csv, 'UTF-8', 'UTF-8'); //insert the header $this->csv->insertOne($this->buildHeader()); diff --git a/app/Export/CSV/CreditExport.php b/app/Export/CSV/CreditExport.php index 5964b350a8b3..a549f274efb8 100644 --- a/app/Export/CSV/CreditExport.php +++ b/app/Export/CSV/CreditExport.php @@ -132,6 +132,7 @@ class CreditExport extends BaseExport $query = $this->init(); //load the CSV document from a string $this->csv = Writer::createFromString(); + \League\Csv\CharsetConverter::addTo($this->csv, 'UTF-8', 'UTF-8'); //insert the header $this->csv->insertOne($this->buildHeader()); diff --git a/app/Export/CSV/DocumentExport.php b/app/Export/CSV/DocumentExport.php index 72929ffbaa4b..52757287cb1a 100644 --- a/app/Export/CSV/DocumentExport.php +++ b/app/Export/CSV/DocumentExport.php @@ -92,6 +92,7 @@ class DocumentExport extends BaseExport //load the CSV document from a string $this->csv = Writer::createFromString(); + \League\Csv\CharsetConverter::addTo($this->csv, 'UTF-8', 'UTF-8'); //insert the header $this->csv->insertOne($this->buildHeader()); diff --git a/app/Export/CSV/ExpenseExport.php b/app/Export/CSV/ExpenseExport.php index 07ba62c88a90..fe1db16d1b2b 100644 --- a/app/Export/CSV/ExpenseExport.php +++ b/app/Export/CSV/ExpenseExport.php @@ -121,6 +121,7 @@ class ExpenseExport extends BaseExport //load the CSV document from a string $this->csv = Writer::createFromString(); + \League\Csv\CharsetConverter::addTo($this->csv, 'UTF-8', 'UTF-8'); //insert the header $this->csv->insertOne($this->buildHeader()); diff --git a/app/Export/CSV/InvoiceItemExport.php b/app/Export/CSV/InvoiceItemExport.php index b8f411dfc1c3..fcc0470400da 100644 --- a/app/Export/CSV/InvoiceItemExport.php +++ b/app/Export/CSV/InvoiceItemExport.php @@ -131,6 +131,7 @@ class InvoiceItemExport extends BaseExport //load the CSV document from a string $this->csv = Writer::createFromString(); + \League\Csv\CharsetConverter::addTo($this->csv, 'UTF-8', 'UTF-8'); //insert the header $this->csv->insertOne($this->buildHeader()); diff --git a/app/Export/CSV/PaymentExport.php b/app/Export/CSV/PaymentExport.php index efe6d93a40f8..18c25feb0298 100644 --- a/app/Export/CSV/PaymentExport.php +++ b/app/Export/CSV/PaymentExport.php @@ -105,6 +105,7 @@ class PaymentExport extends BaseExport $query = $this->init(); //load the CSV document from a string $this->csv = Writer::createFromString(); + \League\Csv\CharsetConverter::addTo($this->csv, 'UTF-8', 'UTF-8'); //insert the header $this->csv->insertOne($this->buildHeader()); diff --git a/app/Export/CSV/ProductExport.php b/app/Export/CSV/ProductExport.php index bcbe6290ff46..b1ef871c2522 100644 --- a/app/Export/CSV/ProductExport.php +++ b/app/Export/CSV/ProductExport.php @@ -93,6 +93,7 @@ class ProductExport extends BaseExport //load the CSV document from a string $this->csv = Writer::createFromString(); + \League\Csv\CharsetConverter::addTo($this->csv, 'UTF-8', 'UTF-8'); //insert the header $this->csv->insertOne($this->buildHeader()); diff --git a/app/Export/CSV/ProductSalesExport.php b/app/Export/CSV/ProductSalesExport.php index dc6479db5bfa..9a0fed92a0c8 100644 --- a/app/Export/CSV/ProductSalesExport.php +++ b/app/Export/CSV/ProductSalesExport.php @@ -112,6 +112,7 @@ class ProductSalesExport extends BaseExport //load the CSV document from a string $this->csv = Writer::createFromString(); + \League\Csv\CharsetConverter::addTo($this->csv, 'UTF-8', 'UTF-8'); if (count($this->input['report_keys']) == 0) { $this->input['report_keys'] = array_values($this->entity_keys); diff --git a/app/Export/CSV/PurchaseOrderExport.php b/app/Export/CSV/PurchaseOrderExport.php index 48aea177b504..ff092f3fbd3e 100644 --- a/app/Export/CSV/PurchaseOrderExport.php +++ b/app/Export/CSV/PurchaseOrderExport.php @@ -108,6 +108,7 @@ class PurchaseOrderExport extends BaseExport //load the CSV document from a string $this->csv = Writer::createFromString(); + \League\Csv\CharsetConverter::addTo($this->csv, 'UTF-8', 'UTF-8'); //insert the header $this->csv->insertOne($this->buildHeader()); diff --git a/app/Export/CSV/PurchaseOrderItemExport.php b/app/Export/CSV/PurchaseOrderItemExport.php index 0de2e1e217d8..d7839448bcec 100644 --- a/app/Export/CSV/PurchaseOrderItemExport.php +++ b/app/Export/CSV/PurchaseOrderItemExport.php @@ -115,6 +115,7 @@ class PurchaseOrderItemExport extends BaseExport { //load the CSV document from a string $this->csv = Writer::createFromString(); + \League\Csv\CharsetConverter::addTo($this->csv, 'UTF-8', 'UTF-8'); $query = $this->init(); diff --git a/app/Export/CSV/QuoteExport.php b/app/Export/CSV/QuoteExport.php index 13f48266bcee..ceaafeffce6f 100644 --- a/app/Export/CSV/QuoteExport.php +++ b/app/Export/CSV/QuoteExport.php @@ -113,6 +113,7 @@ class QuoteExport extends BaseExport { //load the CSV document from a string $this->csv = Writer::createFromString(); + \League\Csv\CharsetConverter::addTo($this->csv, 'UTF-8', 'UTF-8'); $query = $this->init(); diff --git a/app/Export/CSV/QuoteItemExport.php b/app/Export/CSV/QuoteItemExport.php index 754951f13afb..d3c004c1c201 100644 --- a/app/Export/CSV/QuoteItemExport.php +++ b/app/Export/CSV/QuoteItemExport.php @@ -121,6 +121,7 @@ class QuoteItemExport extends BaseExport //load the CSV document from a string $this->csv = Writer::createFromString(); + \League\Csv\CharsetConverter::addTo($this->csv, 'UTF-8', 'UTF-8'); $query = $this->init(); diff --git a/app/Export/CSV/RecurringInvoiceExport.php b/app/Export/CSV/RecurringInvoiceExport.php index 2410230dc649..df80d2d2a92b 100644 --- a/app/Export/CSV/RecurringInvoiceExport.php +++ b/app/Export/CSV/RecurringInvoiceExport.php @@ -83,6 +83,7 @@ class RecurringInvoiceExport extends BaseExport //load the CSV document from a string $this->csv = Writer::createFromString(); + \League\Csv\CharsetConverter::addTo($this->csv, 'UTF-8', 'UTF-8'); //insert the header $this->csv->insertOne($this->buildHeader()); diff --git a/app/Export/CSV/TaskExport.php b/app/Export/CSV/TaskExport.php index a604eed73f0a..7830114f260a 100644 --- a/app/Export/CSV/TaskExport.php +++ b/app/Export/CSV/TaskExport.php @@ -94,6 +94,7 @@ class TaskExport extends BaseExport //load the CSV document from a string $this->csv = Writer::createFromString(); + \League\Csv\CharsetConverter::addTo($this->csv, 'UTF-8', 'UTF-8'); //insert the header $this->csv->insertOne($this->buildHeader()); diff --git a/app/Export/CSV/VendorExport.php b/app/Export/CSV/VendorExport.php index 000f806a056b..5037e4d43b7f 100644 --- a/app/Export/CSV/VendorExport.php +++ b/app/Export/CSV/VendorExport.php @@ -54,6 +54,7 @@ class VendorExport extends BaseExport //load the CSV document from a string $this->csv = Writer::createFromString(); + \League\Csv\CharsetConverter::addTo($this->csv, 'UTF-8', 'UTF-8'); if (count($this->input['report_keys']) == 0) { $this->input['report_keys'] = array_values($this->vendor_report_keys); diff --git a/app/Services/Report/ARDetailReport.php b/app/Services/Report/ARDetailReport.php index 8a4b47592d78..8b937b495de2 100644 --- a/app/Services/Report/ARDetailReport.php +++ b/app/Services/Report/ARDetailReport.php @@ -74,6 +74,7 @@ class ARDetailReport extends BaseExport $t->replace(Ninja::transformTranslations($this->company->settings)); $this->csv = Writer::createFromString(); + \League\Csv\CharsetConverter::addTo($this->csv, 'UTF-8', 'UTF-8'); $this->csv->insertOne([]); $this->csv->insertOne([]); diff --git a/app/Services/Report/ARSummaryReport.php b/app/Services/Report/ARSummaryReport.php index 974059783c90..3ba32b3bea28 100644 --- a/app/Services/Report/ARSummaryReport.php +++ b/app/Services/Report/ARSummaryReport.php @@ -70,6 +70,7 @@ class ARSummaryReport extends BaseExport $t->replace(Ninja::transformTranslations($this->company->settings)); $this->csv = Writer::createFromString(); + \League\Csv\CharsetConverter::addTo($this->csv, 'UTF-8', 'UTF-8'); $this->csv->insertOne([]); $this->csv->insertOne([]); diff --git a/app/Services/Report/ClientBalanceReport.php b/app/Services/Report/ClientBalanceReport.php index cf8a5716bd9d..c5ca05c5fa97 100644 --- a/app/Services/Report/ClientBalanceReport.php +++ b/app/Services/Report/ClientBalanceReport.php @@ -64,6 +64,7 @@ class ClientBalanceReport extends BaseExport $t->replace(Ninja::transformTranslations($this->company->settings)); $this->csv = Writer::createFromString(); + \League\Csv\CharsetConverter::addTo($this->csv, 'UTF-8', 'UTF-8'); $this->csv->insertOne([]); $this->csv->insertOne([]); diff --git a/app/Services/Report/ClientSalesReport.php b/app/Services/Report/ClientSalesReport.php index b59e54337a26..c2bd9346bdcc 100644 --- a/app/Services/Report/ClientSalesReport.php +++ b/app/Services/Report/ClientSalesReport.php @@ -68,6 +68,7 @@ class ClientSalesReport extends BaseExport $t->replace(Ninja::transformTranslations($this->company->settings)); $this->csv = Writer::createFromString(); + \League\Csv\CharsetConverter::addTo($this->csv, 'UTF-8', 'UTF-8'); $this->csv->insertOne([]); $this->csv->insertOne([]); diff --git a/app/Services/Report/TaxSummaryReport.php b/app/Services/Report/TaxSummaryReport.php index c593d93ca873..b44b795570e2 100644 --- a/app/Services/Report/TaxSummaryReport.php +++ b/app/Services/Report/TaxSummaryReport.php @@ -63,6 +63,7 @@ class TaxSummaryReport extends BaseExport $t->replace(Ninja::transformTranslations($this->company->settings)); $this->csv = Writer::createFromString(); + \League\Csv\CharsetConverter::addTo($this->csv, 'UTF-8', 'UTF-8'); $this->csv->insertOne([]); $this->csv->insertOne([]); diff --git a/app/Services/Report/UserSalesReport.php b/app/Services/Report/UserSalesReport.php index e4bd03249f74..9b3dec875fa6 100644 --- a/app/Services/Report/UserSalesReport.php +++ b/app/Services/Report/UserSalesReport.php @@ -61,6 +61,7 @@ class UserSalesReport extends BaseExport $t->replace(Ninja::transformTranslations($this->company->settings)); $this->csv = Writer::createFromString(); + \League\Csv\CharsetConverter::addTo($this->csv, 'UTF-8', 'UTF-8'); $query = Invoice::query() ->withTrashed()