W
Wolfgang
I have a very simple servlet, see code at
http://www.alexandria.ucsb.edu/~rnott/tmp/Test.java
The servlet reads lines from a file tmp1.txt and just writes them back
to a Web page.
The lines in tmp1.txt contain UTF-8 encoded text, including some
special characters, such as the Norwegian 'ø' as in Magerøya, or the
German 'ö' as in Sömmerda.
The servlet generates the Web page ok, listing the lines from file
tmp1.txt.
However, the special characters like 'ø' and 'ö' don't show up on the
Web page, instead they are mangled, like 'ö' instead of 'ö' (other,
regular characters are fine).
Why are the special characters mangled, and what do I do to have them
show up properly on the Web page?
Thanks for your help and advice.
Wolfgang,
Santa Barbara, CA
http://www.alexandria.ucsb.edu/~rnott/tmp/Test.java
The servlet reads lines from a file tmp1.txt and just writes them back
to a Web page.
The lines in tmp1.txt contain UTF-8 encoded text, including some
special characters, such as the Norwegian 'ø' as in Magerøya, or the
German 'ö' as in Sömmerda.
The servlet generates the Web page ok, listing the lines from file
tmp1.txt.
However, the special characters like 'ø' and 'ö' don't show up on the
Web page, instead they are mangled, like 'ö' instead of 'ö' (other,
regular characters are fine).
Why are the special characters mangled, and what do I do to have them
show up properly on the Web page?
Thanks for your help and advice.
Wolfgang,
Santa Barbara, CA