views:

38

answers:

2
javax.servlet.ServletException: weblogic.servlet.jsp.CompilationException: Failed to compile JSP /WEB-INF/content/intro.jsp
messages.tag:2:30: The encoding specified on the page cannot be different than detected encoding for the file.
<%@ tag body-content="empty" pageEncoding="utf-8" %>
                             ^----------^

If I remove pageEncoding attribute in tag file, it works. But I think this is not a solution, because it already works on another Weblogic server. So the problem is with my Weblogic configuration. By Googling the error, I did not found anything.

Any ideas? I have tried setting encoding to UTF-8 in weblogic.xml and many other things I can't even remember, I have had this issue for some time now.

+1  A: 

Make sure that the contents of /WEB-INF/content/intro.jsp are also UTF-8 encoded.

matt b
They are. Problem is with the Weblogic configuration, not with the application.
Enno
@Enno: Are they correct before or after the FTP transfer to the server host?
BalusC
A: 

Where FTP is involved? Im running Weblogic at local machine, where I'm developing.

Enno-at-home
Are you the one and same user? Please register your account so that you can reuse it elsewhere or stick to one and same webbrowser without clearing cookies :)
BalusC
Yes, I was the same user.
Enno