This is a discussion on Apache 2 and Hebrew - updates within the Windows Web Servers forums, part of the Web Server and Related Forums category; Shalom, I have upgraded to Apache2, with tomcat 4.1.30, on a win2000 machine - I had a problem to ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Shalom,
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 -> parameters. 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! G.C. |
|
|||
|
On 14 Dec 2004, G.C. wrote:
> I tried to comment out the line: > AddDefaultCharset ISO-8859-1 Did you only try to comment out or did you actually comment out? Perhaps you used { Pascal comments } ? > 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"> As you have been told twice, this line is irrelevant. > Well, the good news are there is a simple fix to this: > 1) Go to regedit -> > [...] > 5) restart your machine. 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 |