Re: Stream generator encoding problem with Cocoon 2.1.11

2009-03-19 Thread Petteri Sulonen
Trouble is I'm not sending the XML from a servlet; I'm sending it from a browser. I've tried forcing a Content-Type header "application/x-www-form-urlencoded; charset=utf-8" but the charset part doesn't appear to do anything (and I'd prefer not to have to mess with headers on the browser side,

Re: Stream generator encoding problem with Cocoon 2.1.11

2009-03-19 Thread Petteri Sulonen
Okay, I started messing with the source, and found something rather puzzling. If I add a line this.inputSource.setEncoding("UTF-8"); just above parser = (SAXParser)this.manager.lookup(SAXParser.ROLE); parser.parse(this.inputSource, super.xmlConsumer); ...noth

Re: Checking if resource "type" exists

2009-03-19 Thread Víctor Pergolesi
Now I undestand you. I will use your class. The problem is that the servlet engine (Tomcat) can´t find the sitemap.xmap. So the error is before the processing of the sitemap. When I have news (I hope this could be solved) I send you. Thank you very much for the time. Victor Pergolesi From: Math