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

jsp页面上:Page-encoding specified in XML prolog (UTF-8) is different from that specified in page directive(utf-8)问题

今天在修改别人的代码的时候,遇到一个错误,某个jsp的第一行有错误:

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,问题解决了。

居然神奇般的好使了,虽然搞不懂是什么原因,但确实好使。于是,要果断的记下来哇!

原文地址:https://www.cnblogs.com/hanyingme/p/3455664.html