You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by we...@apache.org on 2007/01/04 14:38:35 UTC
svn commit: r492562 -
/myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/webapp/TobagoResponseWriter.java
Author: weber
Date: Thu Jan 4 05:38:34 2007
New Revision: 492562
URL: http://svn.apache.org/viewvc?view=rev&rev=492562
Log:
TOBAGO-218 (tobago throws an exception after validation form in not English locale)
Modified:
myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/webapp/TobagoResponseWriter.java
Modified: myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/webapp/TobagoResponseWriter.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/webapp/TobagoResponseWriter.java?view=diff&rev=492562&r1=492561&r2=492562
==============================================================================
--- myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/webapp/TobagoResponseWriter.java (original)
+++ myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/webapp/TobagoResponseWriter.java Thu Jan 4 05:38:34 2007
@@ -77,7 +77,8 @@
this.writer = writer;
this.stack = new Stack<String>();
this.contentType = contentType;
- this.characterEncoding = characterEncoding;
+ this.characterEncoding
+ = characterEncoding != null ? characterEncoding : "UTF-8";
if ("application/xhtml".equals(contentType)
|| "application/xml".equals(contentType)
|| "text/xml".equals(contentType)) {