Return-Path: X-Original-To: apmail-myfaces-dev-archive@www.apache.org Delivered-To: apmail-myfaces-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 33DF210CAC for ; Thu, 14 Nov 2013 21:43:23 +0000 (UTC) Received: (qmail 79865 invoked by uid 500); 14 Nov 2013 21:43:22 -0000 Delivered-To: apmail-myfaces-dev-archive@myfaces.apache.org Received: (qmail 79813 invoked by uid 500); 14 Nov 2013 21:43:22 -0000 Mailing-List: contact dev-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Development" Delivered-To: mailing list dev@myfaces.apache.org Received: (qmail 79757 invoked by uid 99); 14 Nov 2013 21:43:22 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Nov 2013 21:43:22 +0000 Date: Thu, 14 Nov 2013 21:43:22 +0000 (UTC) From: "Scott O'Bryan (JIRA)" To: dev@myfaces.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (TRINIDAD-2420) Trinidad doesn't support surrogate characters MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/TRINIDAD-2420?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Scott O'Bryan resolved TRINIDAD-2420. ------------------------------------- Resolution: Fixed Fix Version/s: 2.1.0-core r1443711 | jwaldman | 2013-02-07 20:39:17 +0000 | 1 line Changed paths: M /myfaces/trinidad/trunk/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/io/HTMLEscapes.java M /myfaces/trinidad/trunk/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/io/XMLEscapes.java M /myfaces/trinidad/trunk/trinidad-impl/src/main/xrts/org/apache/myfaces/trinidadinternal/resource/LoggerBundle.xrts MYFACES-3690 Trinidad doesn't support surrogate characters > Trinidad doesn't support surrogate characters > --------------------------------------------- > > Key: TRINIDAD-2420 > URL: https://issues.apache.org/jira/browse/TRINIDAD-2420 > Project: MyFaces Trinidad > Issue Type: Bug > Reporter: Jeanne Waldman > Assignee: Jeanne Waldman > Fix For: 2.1.0-core > > Attachments: surrogateCharBug.patch > > Original Estimate: 48h > Remaining Estimate: 48h > > [Problem Description:] > Create a simple jsf page as below: > > > In IE7, when we enter a surrogate character, then click submit button, > surrogate character can be correctly displayed when page rendered. > While in FF3, the surrogate character are displayed as 2 characters after > clicked the submit button. > NOTE: If using pre 7 jetty, the surrogate char will disappear (bug in jetty). I had to use JDeveloper to reproduce. > [Test Data:] > You can copy a sample surrogate character from: > http://www.unicode.org/cgi-bin/GetUnihanData.pl?codepoint=%F0%A0%80%80 > Note: You must install surrogate font in your env to display the surrogate > characters. > [Analysis:] > Check the html source of generated page, the surrogate character is written > into 2 decimal value '��', and Firefox can't recognize these 2 > Decimal value as a single surrogate character. > While in IE, it can recognize these 2 decimal value represent a single > surrogate character. > According to > http://www.unicode.org/cgi-bin/GetUnihanData.pl?codepoint=%F0%A0%80%80, the decimal value for this surrogate character is 131072, if in html source code, > we write "𠀀" instead of '��', the surrogate character > can display well in both IE7 and FF3. > Fix: > The fix is to HTMLEscapes and XMLEscapes. if char is high-surrogate, use Character.getCodePoint and encode that. -- This message was sent by Atlassian JIRA (v6.1#6144)