I am facing a problem with jetty character encoding. When installed the jetty server on Mac (OSX), it works fine. But, when it is installed on Ubuntu (10.10), the character encoding is not proper.
The word in the page (not URL) having problem is: The New York Times® Bestsellers
It is shown as "The New York Times� Bestsellers" on the page served by the server on Linux
and it is shown as "The New York Times® Bestsellers" on the page served by the server on Mac (This is correct)
The jetty server version is: hightide-7.0.2.v20100331
The character encoding of file served is: UTF-8
Can you please let me know if any settings need to be changed to overcome this problem?
Thanks in advance!
I had a similar problem with jetty 8 and solved it by adding this line to bin/jetty.sh:
JAVA_OPTIONS+=("-Dfile.encoding=UTF-8")
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With