当我设置响应内容类型为 excel 时。在 excel 表中,它显示的是 1-Jan 而不是 1-1。这是代码片段
<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<%
response.setContentType("application/vnd.ms-excel");
%>
<table><tr><td>1-1</td></tr></table>
附加单引号“'”将起作用。有没有其他解决方案来设置单元格格式或正确的文本?