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 2017/12/21 13:24:16 UTC

[myfaces-tobago] branch tobago-2.0.x updated: TOBAGO-1805 - Tobago 2: Broken Emojis after partial Update

This is an automated email from the ASF dual-hosted git repository.

weber pushed a commit to branch tobago-2.0.x
in repository https://gitbox.apache.org/repos/asf/myfaces-tobago.git


The following commit(s) were added to refs/heads/tobago-2.0.x by this push:
     new 71645f6  TOBAGO-1805 - Tobago 2: Broken Emojis after partial Update
71645f6 is described below

commit 71645f6d176a2175ccfff4a50ecc567599a66396
Author: Volker Weber <v....@inexso.de>
AuthorDate: Thu Dec 21 14:24:12 2017 +0100

    TOBAGO-1805 - Tobago 2: Broken Emojis after partial Update
---
 .../org/apache/myfaces/tobago/internal/ajax/AjaxResponseRenderer.java  | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/ajax/AjaxResponseRenderer.java b/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/ajax/AjaxResponseRenderer.java
index d16bfd2..3d7c915 100644
--- a/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/ajax/AjaxResponseRenderer.java
+++ b/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/ajax/AjaxResponseRenderer.java
@@ -136,7 +136,8 @@ public class AjaxResponseRenderer {
     ResponseUtils.ensureNoCacheHeader(facesContext);
     final UIComponent page = ComponentUtils.findPage(facesContext);
     final String charset;
-    if (page != null) {  // in case of CODE_RELOAD_REQUIRED page is null
+    if (page != null && page.getAttributes().get(Attributes.CHARSET) != null) {
+      // in case of CODE_RELOAD_REQUIRED page is null
       charset = (String) page.getAttributes().get(Attributes.CHARSET);
     } else {
       charset = "UTF-8";

-- 
To stop receiving notification emails like this one, please contact
['"commits@myfaces.apache.org" <co...@myfaces.apache.org>'].