[
https://issues.apache.org/jira/browse/TAPESTRY-1641?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12512407
]
Nick Westgate commented on TAPESTRY-1641:
-----------------------------------------
Gak! Another 2 part JIRA.
Just to be explicit, I mean an encoding for the return string bytes. Ie ...
public InputStream getStream() throws IOException
{
return new ByteArrayInputStream((_encoding == null) ? _text.getBytes()
: _text.getBytes(_encoding));
}
Cheers,
Nick.
> TextStreamResponse could do with a text encoding parameter.
> -----------------------------------------------------------
>
> Key: TAPESTRY-1641
> URL: https://issues.apache.org/jira/browse/TAPESTRY-1641
> Project: Tapestry
> Issue Type: Improvement
> Affects Versions: 5.0.5
> Reporter: Nick Westgate
> Priority: Minor
>
> Presumably when AJAX arrives the default will be UTF-8 or a Tapestry setting
> etc.
> But individual event handler responses will still need to be able to set
> their own encoding.
> An additional constructor seems called for:
> public TextStreamResponse(
> final String contentType,
> final String text,
> final String encoding)
> {
> this(contentType, text);
> _encoding = encoding;
> }
> Cheers,
> Nick.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]