JOT Demo - Multi-language Character Set Example
This example servlet displays text that requires the modern Greek character set encoding (ISO-8859-7). The text is nonsense when the response encoding is Latin-1 (ISO-8859-1).

The ContentSource is a text file with Greek characters. The character encoding is specified in the Content-Type response header taken from an initialization parameter (in web.xml). See getContentType().

Servlet with Correct Encoding Content-Type=text/html; charset=ISO-8859-7

Servlet with Wrong Encoding Content-Type=text/html; charset=ISO-8859-1

Demo Menu