Skip to content

Not picking up encoding  #617

Closed
Closed
@fredylg

Description

Im trying to import a csv with a column with this content

Wetherill Street Upgrade – Fairfield City Council

when I try to import it it comes back as null, I have check the coding of the file and comes back as 'ASCII' so I have added that on the excel.php config file but it still been set as null, since Im injecting the object I tried doing :

$import->setInputEncoding('ASCII');
$newData = $import->get()->toArray();

Again without any success.

I also tried doing :

class ProjectListImport extends ExcelFile {
protected $encoding = 'ASCII';
...

but nothing..

Am I doing anything wrong?

If i open the csv on a text editor an saved it as utf-8 then everything works.. unfortunately the client wont be able to do that...
Cheers

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions