Hello there, I'm new in servlet programming and I have a simple question...
I'm using FreeMarker to build a servlet that outputs some results in either
iso-8859-1 or windows-1253. I'm having troubles with the greek section. I
do the following:
before obtaining the writer a set the content type to "text/html;
charset=windows-1253".
When I'm testing the servlet (IE and/or NS) I'm getting '?' chars instead
of Greek. I'v checked that IE sets correctly it's encoding to
Greek(Windows). Also I'v telneted to Apache and sent the request manually
to test, if the encoding is correctly specified in the HTTP headers (it is
correct).
My problem can be solved if I omit the setContentType("text/html;
charset=windows-1253") and just set the content type to "text/html" method
before the getWriter() method, and just before writting anything to the
output writer I send a "<meta http-equiv=\"Content-Type\"
content=\"text/html; charset=windows-1253\">"". But I personally think,
that this is not the correct approach.
My deve. enviroment is made of Apache1.3.6 (win32), JServ1.05b, JSDK2.0 and
JDK1.1.8.
I can only suspect that things get corrupted in Java's PrintWriter class
(or FreeMarker ... but anyway FreeMarker uses a reference to the
PrintWriter so I dont think that the problem is in FreeMarker).
Regards
Slavikos
################################################################
Filippos Slavik
Part of the SIAMS's implementation development team. For more
information, please check http://www.siams.net
e-mail : [EMAIL PROTECTED]
################################################################
"The software said 'runs on Win95 or better,' so I installed
it on Linux..."
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html