If you're just returning an RSS feed you probably don't want any page wrapping,
etc. In that case you can:
@Inject
private Response _response;
You can then do things like setting headers and even write directly to the
container-provided OutputStream - bypassing the whole TextStreamResponse --
just have your method flsuh() the output stream and return null. This should
also give slightly better performance.
HTH,
EE
thanos <[EMAIL PROTECTED]> wrote:
Hi all,
I am trying to return an rss feed using TextStreamResponse("text/xml",
myfeed);
The problem is the that I can't make TextStreamResponse to show UTF-8 (greek
in my case) characters.
I tried to set the content type in the response of RequestGlobals and also
added a Utf8Filter with no luck
The same feed is displayed fine when I requested through a simple servlet.
I can see the characters in the returned string, and if I save the page
source as an UTF-8 file I can displayed it correctly.
However, I can't make my browser or my GUI to display the xml if I directly
request it using TextStreamResponse.
Dont know if it's related with this post:
http://www.nabble.com/T5-confused-about-Services-and-XmlHttpResponse-tf4160459.html#a11839004
Any advice plz?
Thanks
Thanos
--
View this message in context:
http://www.nabble.com/TextStreamResponse-and-XML-and-UTF-8-tf4799847.html#a13732229
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]