Community
Participate
Working Groups
Build Identifier: M20080911-1700 In the body element of JSP file, after entering 16bit unicode (For example "𠀋"), the character it actually represents cannot be displayed properly in the Design View. Reproducible: Always Steps to Reproduce: 1. Create a JSP file, and open the file using Web PageEditor. 2. After entering �h𠀋�h in the Source View, messy code may occur in the Design View. The character it actually represents cannot be displayed properly.
(In reply to comment #0) > Build Identifier: M20080911-1700 > In the body element of JSP file, after entering 16bit unicode (For example > "𠀋"), the character it actually represents cannot be displayed properly > in the Design View. > Reproducible: Always > Steps to Reproduce: > 1. Create a JSP file, and open the file using Web PageEditor. > 2. After entering �h𠀋�h in the Source View, messy code may occur in the > Design View. The character it actually represents cannot be displayed properly. Supplement: In the body element of JSP file, after manually entering 16bit unicode (For example "𠀋"), the code will be displayed in the Design view, but its corresponding character cannot be displayed. After entering 16bit unicode through copy and paste, messy code will be displayed in the Design View.
What is encoding of jsp page itself? Is it 16 bit code? <%@ tag language="java" pageEncoding="ISO-8859-1"%>
(In reply to comment #2) I think you meant <%@ page language="java" pageEncoding="ISO-8859-1"%>, but is this a problem on the Source page as well?
On second reading, I see this is (probably) just pasting a character Entity in the source page? Or ... is that just how is shows up in bugzilla? Also unclear as to which "Web Page Designer" editor is being used? The one that ships with WTP, all by itself? Or an adopter offering?
Created attachment 170497 [details] Create a Jsp file,open it using Web page Editor.
Created attachment 170498 [details] Messy code will be displayed in the design view.
Created attachment 170499 [details] Right code will be displayed in the preview.
(In reply to comment #4) > On second reading, I see this is (probably) just pasting a character Entity in > the source page? Or ... is that just how is shows up in bugzilla? Also unclear > as to which "Web Page Designer" editor is being used? The one that ships with > WTP, all by itself? Or an adopter offering? Please refer to the attached picture for details.
thanks, those pictures really help. I'm moving this to WTP's JSF sub-project, as they are the ones providing that web page editor. Thanks for reporting.
Thanks for reporting the issue. We will review in the next maintenance release.
(In reply to comment #10) > Thanks for reporting the issue. We will review in the next maintenance release. Idea of correction: Every time when the user input characters in the Source View,TextEditPart converts the Unicode in the acquired text to corresponding characters, and then display the converted characters in CSSTextFigure. Method of correction: Plugin for correction: org.eclipse.jst.pagedesigner(v29980605) File for correction: org.eclipse.jst.pagedesigner.parts.TextEditPart.java Added file: org.eclipse.jst.pagedesigner.utils.UnicodeHelper For details, please refer to the attached file.
Created attachment 172867 [details] Class file
Created attachment 172868 [details] Patch file
(In reply to comment #13) > Created attachment 172868 [details] > Patch file Thanks for the contribution. We would like to commit the code. Please answer the following to help us with the IP log process: 1. Confirm you wrote the code, 2. Confirm you have the rights to donate the code to Eclipse, 3. Confirm that you are submitting the code for inclusion in future Eclipse releases under the Eclipse Public License. Thanks Raghu Srinivasan, Project Lead, JSF Tools Project
Deferring to 3.3 to get IP approval.
Please respond to the questions in comment 14 to help us get the IP approval required to check in the patch. Thanks
(In reply to comment #14) > (In reply to comment #13) > > Created attachment 172868 [details] [details] > > Patch file > > Thanks for the contribution. We would like to commit the code. Please answer > the following to help us with the IP log process: > 1. Confirm you wrote the code, > 2. Confirm you have the rights to donate the code to Eclipse, > 3. Confirm that you are submitting the code for inclusion in future Eclipse > releases under the Eclipse Public License. > > Thanks > Raghu Srinivasan, Project Lead, JSF Tools Project 1. This is the code I wrote. 2. I have the right to contribute this code to eclipse. 3. I'm sure this code can be included in the future release version of eclipse. Thanks!
Mass Triage: Deferred from Indigo
Changing the Target Milestone to future