Re: WordML encoding problem

2007-05-29 Thread Laurie Harper
sc wrote: Just curious why I don't need to do setCharacterEncoding when I do response.setContentType("text/xml; charset=UTF-8"); You *do* need to call it, if you want to be sure things will work everywhere. There are various reasons it might work OK without doing that, most likely being that

Re: WordML encoding problem

2007-05-29 Thread sc
Yes. It works. The source code is like: response.setContentType("application/msword; charset=UTF-8"); response.setCharacterEncoding("utf-8"); java.io.PrintWriter out = response.getWriter(); out.println(outLine); out.close(); Thanks a lot!!! Just curiou

Re: WordML encoding problem

2007-05-29 Thread Laurie Harper
sc wrote: There is an earlier post http://mail-archives.apache.org/mod_mbox/struts-user/200603.mbox/[EMAIL PROTECTED] My problem is pretty much the same as described. But there is no soluton to it. My application is Tomcat + Struts. In the struts action class, I generates a WordML xml and th