This is a discussion on Apache2 and Hebrew 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 - and now I can't see Hebrew in some ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Shalom,
I have upgraded to Apache2, with tomcat 4.1.30 - and now I can't see Hebrew in some of my HTML pages. I have win2000 on my machine. 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 see jibrish in the html pages created dynamically. It is intersting that the static html pages with Hebrew have no problem. Only html pages I create on the fly (using Java Servlets) can't display Hebrew! Does anyone have a clue? Thanks in advance! |
|
|||
|
On 7 Dec 2004, G.C. wrote:
> I have upgraded to Apache2, with tomcat 4.1.30 - and now I can't see > Hebrew > in some of my HTML pages. Give URLs! > I have win2000 on my machine. The server? > I tried to comment out the line: > AddDefaultCharset ISO-8859-1 You "tried" to comment out? And were not successful?? > 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"> This META thingy doesn't matter because the HTTP MIME type (with charset parameter) has priority. Get rid of the META thingy! http://www.w3.org/International/O-HTTP-charset.html http://ppewww.ph.gla.ac.uk/~flavell/...t/ns-burp.html > Only html pages I create on the fly (using Java Servlets) can't display > Hebrew! Give URLs! |
|
|||
|
On Tue, 7 Dec 2004, Andreas Prilop wrote:
> On 7 Dec 2004, G.C. wrote: > > > I tried to comment out the line: > > AddDefaultCharset ISO-8859-1 > > You "tried" to comment out? And were not successful?? well, the answer to that still seems to be missing, doesn't it? > > 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"> Hmmm, do they now? > This META thingy doesn't matter because the HTTP MIME type (with > charset parameter) has priority. Indeed. > Get rid of the META thingy! Theoretically a sound idea; but if the META thingy is only confirming what the server says, it shouldn't be -that- harmful. If it's disagreeing with what the server says, then the first priority is to get the server to say the -right- thing. If the pages are genuine, it ought to work. If they're not, then a META which specifies utf-8 (when the server is saying the same) would not be so terribly harmful, even if, as purists, we would rather it wasn't there. > > Only html pages I create on the fly (using Java Servlets) can't > > display Hebrew! > > Give URLs! Please do. It's the only way to make a speedy diagnosis. The WWW doesn't care whether your web page is made by Java servlets, or by magpies pecking holes in punch cards. (Sorry, that should of course have been "penguins"). All that matters is the end result that gets sent out from the server. |
|
|||
|
Hi,
Sorry, I can't give urls since my machine is not open to the public, it is part of a huge intranet... Looks like there is a serious problem with foreign langs. in Apache2, ah? The funny thing is the same site works fine on a windows 2003 server (with apache2, tomcat 4.1.29), but not on my machine (win2k, not server). Thanks, G.C |