Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

import xlsx is not utf-8 #1171

Closed
niusmake opened this issue Apr 19, 2017 · 1 comment
Closed

import xlsx is not utf-8 #1171

niusmake opened this issue Apr 19, 2017 · 1 comment

Comments

@niusmake
Copy link

import xlsx is not utf-8,

My xlsx is japanese language.

Then I try this code is not utf-8..

https://gyazo.com/a6878a113f3c7c0edb19e2c144197ef1
And japanese columns is disappears

public function import(){
       $filePath = public_path().'/file'.'/'.'test.xlsx';
       Excel::load($filePath,function($reader) {
            $test = $reader->get();
            dd($test);
       }, 'UTF-8');
       return $test;
}

How can I do, Please help me~

My Package version, Laravel version

"laravel/framework": "5.3.*",
 "maatwebsite/excel": "~2.1.0"
@niusmake
Copy link
Author

niusmake commented Apr 26, 2017

I find the problem,
is "excel.php" find 'to_ascii' => true, change this false.
problem is ok~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants