Skip to content

When I import a csv that contain the character "ñ", it appears as � #319

Open

Description

@aanciones

Could yo help me. This is my code:

Activity

  1. aaa2000 commented on Jan 9, 2017

    @aaa2000

    Maybe, you could try

    $encodingFrom = 'ISO-8859-1';
    $encodingTo = 'UTF8';
    $filepath = '/tmp/test.csv';
    
    $reader = new CsvReader(new \SplFileObject('php://filter/read=convert.iconv.'. $encodingFrom .'%2F'. $encodingTo.'/resource='.$filepath));
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions