Comments (5)
尝试将文件名转为UTF-8试试:
$fileName = '导出_' . date('Y-m-d H:i:s') . '.' . $suffix;
$fileName = mb_convert_encoding($fileName, 'UTF-8', mb_detect_encoding($fileName));
from php-ext-xlswriter.
还是不行,后续的filesize方法会报错,filesize(): stat failed for C:\Users\USER\AppData\Local\Temp/导出_2023-11-19 17:11:46.csv,应该是没读取到临时文件导致的
from php-ext-xlswriter.
windows文件名不是不允许包含英文冒号吗
from php-ext-xlswriter.
from php-ext-xlswriter.
我知道了,我以前用的maatwebsite/excel会自动把冒号转换成下划线,我没注意到,抱歉
from php-ext-xlswriter.
Related Issues (20)
- Validation string too long, caused buffer overflow detected
- 设置单元格格式 HOT 1
- 没有找到单元格设置内容颜色功能? HOT 1
- Undocumented cell cache and non-deterministic functions
- 写入图片不支持webp
- constMemory 在1.3.2升级到1.5.5后生成的excel无法打开 HOT 3
- 是不是不能修改现有的excel文件 HOT 1
- 使用内存模式导出,导出过程中CPU很高 HOT 2
- setColumn doesn't change column width if called with explicit null format
- 导出的文件wps能打开,excel打不开 HOT 3
- wps能打开,excel打不开
- 有没有只读的打开方式?
- 【bug】问题比较严重,导出时候丢失部分列 HOT 2
- insertFormula issue
- 读取文件2m以上出现 找不到文件错误
- Does it support excel file to html convertion
- Windows DLL available to download
- 如何在程序中获取PHP-Xlswriter的异常码
- 能文档备注一下,支持插入哪些格式的图片吗? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from php-ext-xlswriter.