Closed pengkobe closed 7 years ago
IIS首页( html )默认返回文件编码为 gbk,而经过 scrat(fis) 转码后的文件为 utf-8 ,请问一下有没有一种方式,可以单独设定几个页面的编码方式,不甚感激...( 目前手工改编码非常麻烦 )
在 web.config 中 system.web 节点下添加配置 <globalization responseEncoding="utf-8" fileEncoding="utf-8" />后,问题解决.
<globalization responseEncoding="utf-8" fileEncoding="utf-8" />
IIS首页( html )默认返回文件编码为 gbk,而经过 scrat(fis) 转码后的文件为 utf-8 ,请问一下有没有一种方式,可以单独设定几个页面的编码方式,不甚感激...( 目前手工改编码非常麻烦 )