---------------------------------------------------------------- BEFORE YOU POST, search the faq at <http://java.apache.org/faq/> WHEN YOU POST, include all relevant version numbers, log files, and configuration files. Don't make us guess your problem!!! ---------------------------------------------------------------- Hi Simon, Thanks for your response. Actually, it looks like I've falsely accused Apache; the actual problem is much more complicated. Basically, it appears that servlets on Linux and servlets on NT behave somewhat differently. On Linux, I can get away without using the PrintWriter (and, actually, cannot use PrintWriter). On the Windows side, however, NT *definitely* wants to get its data from the PrintWriter. If not, output freezes on the first Japanese character. On the Linux side, if I use PrintWriter I get mojibake. Sooo.. response.setContentType( "text/html;charset=Shift_JIS" ); response.getWriter().print( htmlString ); // nt is happy response.getOutputStream.print( htmlString ); // linux is happy Very odd. I *must* be doing something wrong. Otherwise, so much for platform independence... Could this be because I'm using an older JSDK (2.0)? Or is there something about servers that I don't understand? (Like, say, how they actually work..) Cheers, Evan -----Original Message----- From: Simon Dubey [mailto:[EMAIL PROTECTED]] Sent: Monday, July 17, 2000 10:19 AM To: Java Apache Users Subject: Re: Trouble with JServ and Japanese ---------------------------------------------------------------- BEFORE YOU POST, search the faq at <http://java.apache.org/faq/> WHEN YOU POST, include all relevant version numbers, log files, and configuration files. Don't make us guess your problem!!! ---------------------------------------------------------------- Hi Evan, Here we are using Apache 1.3.6 / Jserv 1.0 and gnujsp and have no problem. Of course pages are : response.setContentType ("text/html;charset=Shift_JIS"); Even if we neglect to set the above, the JVM does not freeze though (just output is garbage) Regards Simon. Evan Owens wrote: > ---------------------------------------------------------------- > BEFORE YOU POST, search the faq at <http://java.apache.org/faq/> > WHEN YOU POST, include all relevant version numbers, log files, > and configuration files. Don't make us guess your problem!!! > ---------------------------------------------------------------- > > All: > > I'm running Apache 1.3.12 and JServ 1.1.2 on Japanese NT4 SP5. Apache works > fine and serves up Japanese pages beautifully (and certainly much easier to > get running than WebSphere..). JServ works great as well.. until it tries > to spit out Japanese content. JServ seems to freeze the moment it comes > to its first Japanese character. > > Any ideas? I've missed a setting somewhere, I assume. FYI, the Japanese is > Shift-JIS encoded. > > Any help would be greatly appreciated! > > Cheers, > > Evan Owens > LINC Media, Inc., Tokyo > > -- > -------------------------------------------------------------- > Please read the FAQ! <http://java.apache.org/faq/> > To subscribe: [EMAIL PROTECTED] > To unsubscribe: [EMAIL PROTECTED] > Search Archives: > <http://www.mail-archive.com/java-apache-users%40list.working-dogs.com/> > Problems?: [EMAIL PROTECTED] -- -------------------------------------------------------------- Please read the FAQ! <http://java.apache.org/faq/> To subscribe: [EMAIL PROTECTED] To unsubscribe: [EMAIL PROTECTED] Search Archives: <http://www.mail-archive.com/java-apache-users%40list.working-dogs.com/> Problems?: [EMAIL PROTECTED] -- -------------------------------------------------------------- Please read the FAQ! <http://java.apache.org/faq/> To subscribe: [EMAIL PROTECTED] To unsubscribe: [EMAIL PROTECTED] Search Archives: <http://www.mail-archive.com/java-apache-users%40list.working-dogs.com/> Problems?: [EMAIL PROTECTED]

Reply via email to