"The character encoding of the plain text document was not declared" and "XML Parsing Error: no root element found"

When I want to load the jsp page I get this error:

The character encoding of the plain text document was not declared. The document will render with garbled text in some browser configurations if the document contains characters from outside the US-ASCII range. The character encoding of the file needs to be declared in the transfer protocol or file needs to use a byte order mark as an encoding signature.

my simple jsp page:

<%@page pageEncoding="UTF-8" %>













Hello World!







my simple servlet:

public class MyServlet extends HttpServlet {

@Override

protected void doGet(HttpServletRequest...

Read More »

By: StackOverFlow - Sunday, 15 April

Related Posts