导入utf-8标题Maatwebsite Laravel [英] Import utf-8 headings Maatwebsite Laravel

查看:261
本文介绍了导入utf-8标题Maatwebsite Laravel的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Laravel中使用Maatwebsite,这对于excel作品来说是一个很好的选择,但是我有一个问题..我有一个带有阿拉伯标题的excel表格,所以当我导入它时,它转换为不易理解的英文字符以适合数组关键..那么我的问题的解决方案是什么?

I'm using Maatwebsite in Laravel and it's very good option for excel works but I have one problem .. I have excel sheet with arabic heading, so when I import it , it converted to understand-less english character to fit array key .. So What is the solution for my problem?

推荐答案

我知道为时已晚,但是对于其他可能遇到相同问题的人,您应该将标题"键的值更改为原始"导入"的config/excel.php文件数组..

I know it's too late, but for someone else that may have the same problem, you should change the value of "heading" key to "original" in "import" array of config/excel.php file..

'import' => [
    ...
    'heading' => 'original',
],

这篇关于导入utf-8标题Maatwebsite Laravel的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆