解析Bug #36
Display the irregular text (strtoupper("LARGE ")) when exporting to Excel
Description
Task Details
- The irregular text (strtoupper("LARGE ")) is displayed in the [Extra Info] excel column.
- New OTS->NG [attachment:OrderReport (8月).xls]
- Old OTS->OK [attachment:OrderReport (18).xls]
- Report and Solution
Others
Files
Updated by Xihua Fan about 5 years ago
- File OrderReport (18).xls OrderReport (18).xls added
- File OrderReport (8月).xls OrderReport (8月).xls added
- Copied from 运维支持 #3: Do system maintenance of our OTS website (order.easydingzhi.com) regularly added
Updated by Xihua Fan about 5 years ago
- Copied from deleted (运维支持 #3: Do system maintenance of our OTS website (order.easydingzhi.com) regularly)
Updated by Xihua Fan about 5 years ago
- % Done changed from 10 to 100
Analysis results and solution:¶
- Reason:
preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead.
So we can't use php code(eg. strtoupper) in preg_replace().
- New Solution:
Change to a new html2text (https://github.com/mtibben/html2text)