Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jetty Character encoding issue

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!

like image 443
Ravi Avatar asked Apr 29 '26 11:04

Ravi


1 Answers

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")
like image 68
aditsu quit because SE is EVIL Avatar answered May 01 '26 01:05

aditsu quit because SE is EVIL



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!