当前位置:网站首页>Phpexcel export Emoji symbol error
Phpexcel export Emoji symbol error
2022-07-26 09:48:00 【Color the sky】
original text :http://blog.csdn.net/SakuraLLj/article/details/72823765
phpexcel Export user data into excel when , If the nickname contains an expression , It can lead to incomplete data .
Filter or replace emoji. because emoji adopt json_encode after , Most of them are u[ed] The code at the beginning , So first, the nickname json_encode Then use regular filtering or replace with *, The following is the relevant code :
$value = json_encode($value);
$value = preg_replace("/\\\u[ed][0-9a-f]{3}\\\u[ed][0-9a-f]{3}/","*",$value);// Replace with *
$value = json_decode($value);
边栏推荐
- Gauss elimination
- mfc随手笔记
- 网站设计需要的基本知识
- Application of Gauss elimination
- [untitled]
- 【Datawhale】【机器学习】糖尿病遗传风险检测挑战赛
- Interview shock 68: why does TCP need three handshakes?
- 青少年软件编程等级考试标准解读_二级
- 开发转测试:从0开始的6年自动化之路...
- Alibaba cloud technology expert haochendong: cloud observability - problem discovery and positioning practice
猜你喜欢

电机转速模糊pid控制

QT handy notes (III) use qtcharts to draw a line chart in VS

服务发现原理分析与源码解读

解决ProxyError: Conda cannot proceed due to an error in your proxy configuration.

V-permission add permission

Server and client dual authentication (2)

Xiaobai makes a wave of deep copy and shallow copy

uni-app学习总结

2021年山东省中职组“网络空间安全”B模块windows渗透(解析)

Azkaban【基础知识 01】核心概念+特点+Web界面+架构+Job类型(一篇即可入门Azkaban工作流调度系统)
随机推荐
Why does new public chain Aptos meet market expectations?
在同一conda环境下先装Pytroch后装TensorFlow
The whole process of server environment configuration
Interview shock 68: why does TCP need three handshakes?
R语言ggpubr包ggsummarystats函数可视化分组箱图(自定义分组颜色)并在X轴标签下方添加分组对应的统计值(样本数N、中位数median、四分位数的间距iqr、统计值的色彩和分组图色匹配
莫队学习总结(二)
Matlab Simulink realizes fuzzy PID control of time-delay temperature control system of central air conditioning
IIS website configuration
spolicy请求案例
Simple pedestrian recognition code to 88% accuracy Zheng Zhedong preparation
Basic knowledge of website design
SSG框架Gatsby访问数据库,并显示到页面上
(二)面扫描仪与机械臂的手眼标定(眼在手外:九点标定)
I finished watching this video on my knees at station B
新增市场竞争激烈,中国移动被迫推出限制性超低价5G套餐
uni-app学习总结
[fluorescent character effect]
苹果独占鳌头,三星大举复兴,国产手机在高端市场颗粒无收
Interpretation of the standard of software programming level examination for teenagers_ second level
云原生(三十六) | Kubernetes篇之Harbor入门和安装