http://codereview.appspot.com/1032042/diff/1/2 File java/gadgets/src/main/java/org/apache/shindig/gadgets/rewrite/MutableContent.java (right): http://codereview.appspot.com/1032042/diff/1/2#newcode144 java/gadgets/src/main/java/org/apache/shindig/gadgets/rewrite/MutableContent.java:144: contentBytes = content.getBytes("UTF8"); Just curious is the charset name ...
15 years, 8 months ago
(2010-05-03 23:39:32 UTC)
#5
I suppose it couldn't hurt to just use CharsetUtil.getUtf8Bytes() - obviates the need for a ...
15 years, 8 months ago
(2010-05-03 23:43:25 UTC)
#6
I suppose it couldn't hurt to just use CharsetUtil.getUtf8Bytes() - obviates
the need for a try/catch block as well. Seem reasonable?
On Mon, May 3, 2010 at 4:39 PM, <henry.saputra@gmail.com> wrote:
>
> http://codereview.appspot.com/1032042/diff/1/2
> File
>
>
>
java/gadgets/src/main/java/org/apache/shindig/gadgets/rewrite/MutableContent.java
> (right):
>
> http://codereview.appspot.com/1032042/diff/1/2#newcode144
>
>
java/gadgets/src/main/java/org/apache/shindig/gadgets/rewrite/MutableContent.java:144:
> contentBytes = content.getBytes("UTF8");
> Just curious is the charset name should be "UTF-8" or use
> CharsetUtil.UTF8?
>
>
> http://codereview.appspot.com/1032042/show
>
Went ahead and used CharsetUtil.getUtf8Bytes(...), and committed. On Mon, May 3, 2010 at 4:43 PM, ...
15 years, 8 months ago
(2010-05-04 00:23:37 UTC)
#7
Went ahead and used CharsetUtil.getUtf8Bytes(...), and committed.
On Mon, May 3, 2010 at 4:43 PM, John Hjelmstad <johnfargo@gmail.com> wrote:
> I suppose it couldn't hurt to just use CharsetUtil.getUtf8Bytes() -
> obviates the need for a try/catch block as well. Seem reasonable?
>
> On Mon, May 3, 2010 at 4:39 PM, <henry.saputra@gmail.com> wrote:
>
>>
>> http://codereview.appspot.com/1032042/diff/1/2
>> File
>>
>>
>>
java/gadgets/src/main/java/org/apache/shindig/gadgets/rewrite/MutableContent.java
>> (right):
>>
>> http://codereview.appspot.com/1032042/diff/1/2#newcode144
>>
>>
java/gadgets/src/main/java/org/apache/shindig/gadgets/rewrite/MutableContent.java:144:
>> contentBytes = content.getBytes("UTF8");
>> Just curious is the charset name should be "UTF-8" or use
>> CharsetUtil.UTF8?
>>
>>
>> http://codereview.appspot.com/1032042/show
>>
>
>
+1 using CharsetUtils.getUtf8Bytes instead - Henry On Mon, May 3, 2010 at 4:43 PM, John ...
15 years, 8 months ago
(2010-05-04 00:49:26 UTC)
#8
+1 using CharsetUtils.getUtf8Bytes instead
- Henry
On Mon, May 3, 2010 at 4:43 PM, John Hjelmstad <johnfargo@gmail.com> wrote:
> I suppose it couldn't hurt to just use CharsetUtil.getUtf8Bytes() -
> obviates the need for a try/catch block as well. Seem reasonable?
>
> On Mon, May 3, 2010 at 4:39 PM, <henry.saputra@gmail.com> wrote:
>
>>
>> http://codereview.appspot.com/1032042/diff/1/2
>> File
>>
>>
>>
java/gadgets/src/main/java/org/apache/shindig/gadgets/rewrite/MutableContent.java
>> (right):
>>
>> http://codereview.appspot.com/1032042/diff/1/2#newcode144
>>
>>
java/gadgets/src/main/java/org/apache/shindig/gadgets/rewrite/MutableContent.java:144:
>> contentBytes = content.getBytes("UTF8");
>> Just curious is the charset name should be "UTF-8" or use
>> CharsetUtil.UTF8?
>>
>>
>> http://codereview.appspot.com/1032042/show
>>
>
>
Issue 1032042: HttpResponseBuilder-extends-MutableContent
(Closed)
Created 15 years, 8 months ago by johnfargo
Modified 15 years, 8 months ago
Reviewers: shindig.remailer_gmail.com, zhoresh, jtarrio, Paul Lindner, henry.saputra
Base URL: http://svn.apache.org/repos/asf/shindig/trunk/
Comments: 1