https://bz.apache.org/bugzilla/show_bug.cgi?id=60769
--- Comment #5 from Lazar <lazar.kirc...@gmail.com> --- The content of the enctest.jspx is: <?xml version="1.0" encoding="IBM871"?> <html xmlns:jsp="http://java.sun.com/JSP/Page"> <jsp:directive.page pageEncoding="IBM871" /> <jsp:output omit-xml-declaration="no"/> <body> You should see this text. </body> </html> So actually there is an encoding attribute in the prolog. For some reason JRE XML parser does not detect it correctly. On the other hand, the deprecated XMLEncodingDetector from before the refactoring, which parsed the files itself, correctly detects the encoding from the prolog - for example, with Tomcat 8.5.4 the sample works correctly. I apologise for that my second attachment is an incorrect one - I noticed that by mistake I have attached the second war from the first attachment instead of the problematic war with IBM871 encoding. I attach now the correct one with name encsample.war -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org