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

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识别还不一样?真有点苦笑不得了,不过还是记下来。

你可能感兴趣的:(jsp)