Skip to content

How to read cyrillic characters? #121

Description

@RainOGD

class ExcelDataController extends Controller
{
public function readAndSaveAction()
{
$filename = $this->container->getParameter('xls_fixture_absolute_path');
$phpExcelObject = $this->get('phpexcel')->createPHPExcelObject($filename);
// $writer = $this->get('phpexcel')->createWriter($phpExcelObject, 'Excel5');

    for ($i = 1; $i <= 10; $i++){
        $value = $phpExcelObject->getActiveSheet()->getCell('C' . $i)->getValue();
        var_dump($value);
    }

    die;

// $writer->save($filename);
}
}

I get bad characters when I'm trying to read xlsx file with russian characters. How to resolve this?

Activity

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