首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > XML SOAP >

Page-encoding specified in XML prolog (UTF-八) is different from that specified i

2013-11-08 
Page-encoding specified in XML prolog (UTF-8) is different from that specified iPage-encoding speci

Page-encoding specified in XML prolog (UTF-8) is different from that specified i

Page-encoding specified in XML prolog (UTF-8) is different from that specified in page directive(utf-8)问题项目部署到我的机子上,可以运行,但在打开一些页面时会出现错误:org.apache.jasper.JasperException:/htpec/pecNodeComponentUpdate.jsp(1,1) Page-encoding specified in XML prolog(UTF-8) is different from that specified in page directive(utf-8)。   这个项目事先是可以正确运行的,在我的环境下也设置为utf-8编码,没理由呀!我试着把页面重编译了一次,结果错误依旧。难道utf-8和UTF-8还有区别?我又把页面的utf-8改成UTF-8,然后运行,结果竟然行了,utf-8和UTF-8识别还不一样?真有点苦笑不得了,不过还是记下来。可能原因,原先可能用记事本把pecNodeComponentUpdate.jsp打开,然后保存时选用了UTF-8编码,因此在pecNodeComponentUpdate.jsp页面用utf-8保存时就会出现上述情况,因此我们在用记事本编码代码时注意保存的编码格式

?

热点排行