Apache 2 and Hebrew - updates

Apache 2 and Hebrew - updates

Post by G.C. » Wed, 15 Dec 2004 17:54:34


I have upgraded to Apache2, with tomcat 4.1.30, on a win2000 machine -
I had a problem to see Hebrew in some of my HTML pages, which were
generated by a java servlet dynamically.

I tried to comment out the line:
AddDefaultCharset ISO-8859-1
in the httpd.conf file, and all of my html pages have the tag
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
And still I saw jibrish in the html pages created dynamically.

Well, the good news are there is a simple fix to this:
1) Go to regedit ->
Hkey-local-machine ->
System ->
Current system settings ->
Services -> Apache Tomcat ->
2) Add 1 to "jvm option code" value.
3) Create a new string called "jvm option number j", where j = "jvm
option code" - 1.
4) change the value for the new string to
"-Dfile.encoding=UTF-8", without the "".
5) restart your machine.
That is it. It should help with the Hebrew!


Apache 2 and Hebrew - updates

Post by Andreas Pr » Thu, 16 Dec 2004 01:57:26

Did you only try to comment out or did you actually comment out?
Perhaps you used { Pascal comments } ?

As you have been told twice, this line is irrelevant.

What's your definition of "simple"?
Apparently this procedure is sufficient but I doubt it is necessary.

Mars, unlike Earth, has no atmosphere.
The Chicago manual of style, 15th ed., p. 362