我在速度模板文件中有非ascii字符。当它们被处理时,它们是乱码。
文件以UTF-8编码保存,响应头contentType也设置为text/html;charset=UTF-8。
还能做些什么呢?
发布于 2010-03-24 03:13:19
好的,所以解决方案是设置以下速度属性(Spring的bean def的一部分):
<entry key="input.encoding" value="UTF-8"/>
<entry key="output.encoding" value="UTF-8"/>https://stackoverflow.com/questions/2501887
复制相似问题