Home
TeamSite
error when using charset=ISO-8859-1 in tpl file
tobias
In order to display German special characters (ä, ö, ü etc.) correctly in templating-generated HTML pages our presentation templates contain the following in the <head> tag:
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1;">
instead of the widely used
charset=UTF-8
Previewing and generating files works fine, but when I click on the file name of the generated HTML file the popup window not only shows my file but appended to it the following error message:
Error: 500
Location: /iw/webdesk/doblob
Internal Servlet Error:
java.io.UnsupportedEncodingException: ISO-8859-1;
at com.interwoven.teamsite.blobulator.BlobContext.getDocumentEncoding(BlobContext.java:235)
at com.interwoven.teamsite.blobulator.handlers.HTMLHandler.handleRequest(HTMLHandler.java:51)
at com.interwoven.teamsite.blobulator.BlobulatorServlet.doBlobRequest(BlobulatorServlet.java:46)
at com.interwoven.teamsite.blobulator.AbstractBlobServlet.doGet(AbstractBlobServlet.java:158)
at com.interwoven.framework.base.FrameworkServlet.doPost(FrameworkServlet.java:84)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at com.interwoven.framework.base.FrameworkServlet.service(FrameworkServlet.java:66)
at com.interwoven.framework.auth.AuthServlet.service(AuthServlet.java:105)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at org.apache.tomcat.core.Handler.service(Handler.java:287)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:423)
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
at java.lang.Thread.run(Thread.java:484)
However, when I deploy the file to the web server they are displayed correctly.
Has anyone seen this error and if so, is there any chance of getting rid of it (or at least to somehow suppress the error messages, so the user won't see them)?
We are using TST5.5.2 on WinNT
Find more posts tagged with
Comments
tobias
OK, found the cause of the error.
It was the SmartContext Bar that threw the error because in my .tpl presentation template I had set the encoding to
content="text/html; charset=ISO-8859-1;"
(I didn't notice that on any page with the mentioned error message there was no SmartContext Bar.)
Here the last "
;
" is wrong, so I deleted it, re-generated the files and voilá - they are displayed correctly.