myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From we...@apache.org
Subject svn commit: r492562 - /myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/webapp/TobagoResponseWriter.java
Date Thu, 04 Jan 2007 13:38:35 GMT
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)) {



Mime
View raw message