Michiel Meeuwissen <[EMAIL PROTECTED]> wrote: > Martijn Houtman <[EMAIL PROTECTED]> wrote: > > > > <mm:include page="data.xml" /> > > > > data.xml: > > > > <p>Caf? twee?ntwintig</p> > > > > The result is: > > > > Caf? twee?ntwintig > > Hmm, yes. I did not try including xml's directly (or other non-jsp's). If > it goes wrong, it might be a bug of tomcat. But I will add a test-case for > this to the encoding example. > > Do you happen to have tomcat 5 available?
I added the testcases. I think it would be very hard to do something about it. Tomcat does not provided the encoding of an XML in the headers (which does make some sense, because XML's are essentialy binary data). In our defense: mm:include works in this respect excactly the same as jsp:include, which also does not succesfully include differently encoded XML's. To make it work better, in case of text/xml content-type the first line of input must be explored for an 'encoding' indication. This would be quite cumbersome, but - i suppose - possible. This issue has made it to issue #6496 in the mmbase bugtracker. Thank you. Michiel -- Michiel Meeuwissen Mediacentrum 140 H'sum +31 (0)35 6772979 nl_NL eo_XX en_US mihxil' [] ()
