-
-
Notifications
You must be signed in to change notification settings - Fork 246
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
chinese GBK make me trouble #56
Comments
i have solved this problem. edit FastExcel.php file
next, in laravel controller (new FastExcel(['encoding' => 'gbk']))->import($path, function ($line) { |
@mengdodo By the way, there is a $path = storage_path('app/uploads/3.csv');
(new FastExcel)->configureCsv(',', '"', '\n', 'gbk')->import($path, function ($line) {
dd($line);
}); As |
@rap2hpoutre @Pochwar thanks ,I have solved this problem |
detail:
b"ÉÌÆ·Ãû³Æ" => b"»ªÎªÈÙÒ«9¸Ö»¯Ä¤v10v9ÈÙÒ«8Çà´º°ænova2sÈ«ÆÁplay¸²¸Ç9iÌùĤmate°Ëp20proÊÖ»úp9p10Ô×°v8¾Åplus¿¹À¶¹âÈ«°ü±ß"
please help me.....
my code:
$path = storage_path('app/uploads/3.csv');
(new FastExcel)->import($path, function ($line) {
dd($line);
});
The text was updated successfully, but these errors were encountered: