Laravel-excel: import excel with Chinese problem

Created on 23 Feb 2016  ·  7Comments  ·  Source: Maatwebsite/Laravel-Excel

when I write a excel file with Chinese in the file's title, I use function select(), I can't read any data. But when I change to English, I can read the data. Why?

Most helpful comment

change the config:

'import'     => array(
 'to_ascii'                => false, //default true, true==>false
)

All 7 comments

change the config:

'import'     => array(
 'to_ascii'                => false, //default true, true==>false
)

Thank very much for reply, but it doesn’t work. Maybe I describe not clear.
Now I find another way to get my data.

On Feb 23, 2016, at 5:19 PM, Shelwin Wei [email protected] wrote:

change the config:

'import' => array(
'to_ascii' => false, //default true, true==>false
)

Reply to this email directly or view it on GitHub https://github.com/Maatwebsite/Laravel-Excel/issues/698#issuecomment-187614122.

I’m very sorry, your way is right, I configure in an worry files.
Thanks a lot!

On Feb 23, 2016, at 5:19 PM, Shelwin Wei [email protected] wrote:

change the config:

'import' => array(
'to_ascii' => false, //default true, true==>false
)

Reply to this email directly or view it on GitHub https://github.com/Maatwebsite/Laravel-Excel/issues/698#issuecomment-187614122.

完美的解决了我的问题 thanks

thanks,遇到中文问题可以参考这里

how to fix this case please

when use ^3.1.* , this problem has Reappear

Was this page helpful?
0 / 5 - 0 ratings