NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

BUG? character encoding in jsf fragment

 
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users
View previous topic :: View next topic  
Author Message
ymajoros



Joined: 25 May 2009
Posts: 21

PostPosted: Fri May 29, 2009 8:32 am    Post subject: BUG? character encoding in jsf fragment Reply with quote

In a jspf page fragment, it seems international characters as "é" are not encoded conforming to what is specified in project properties.

I have a Visual Icefaces project. Some pages are made of multiple parts which should be reusable, so I put that in jspf page fragments. They are included using <ui:include>.

If I edit the file in vi editor, with encoding set to utf-8, it works as expected. If I edit it in netbeans, it is displayed as iso-8859-1, even though my project is in utf-8. Naturally, the pages arent valid xml files anymore and it breaks:

Facelet[/DetailsMoyen.jspf] was modified @ 10:25:02 AM, flushing component applied @ 10:24:24 AM
Problem in renderResponse: Invalid byte 2 of 3-byte UTF-8 sequence.
com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: Invalid byte 2 of 3-byte UTF-8 sequence.
Back to top
michael
Posted via mailing list.





PostPosted: Sun May 31, 2009 4:43 am    Post subject: BUG? character encoding in jsf fragment Reply with quote

Right-click your project in the projects pane.
Go to "properties"
Select "sources" from the left list.
You should be able to set the necoding of the project there (around to bottom of the panel).

HTH
Michael

-----Original Message-----
From: ymajoros [mailto:address-removed]
Sent: Friday, May 29, 2009 11:33 AM
To: address-removed
Subject: [nbj2ee] BUG? character encoding in jsf fragment


In a jspf page fragment, it seems international characters as "©" are not encoded conforming to what is specified in project properties.



I have a Visual Icefaces project. Some pages are made of multiple parts which should be reusable, so I put that in jspf page fragments. They are included using <ui:include>.



If I edit the file in vi editor, with encoding set to utf-8, it works as expected. If I edit it in netbeans, it is displayed as iso-8859-1, even though my project is in utf-8. Naturally, the pages arent valid xml files anymore and it breaks:



Facelet[/DetailsMoyen.jspf] was modified @ 10:25:02 AM, flushing component applied @ 10:24:24 AM

Problem in renderResponse: Invalid byte 2 of 3-byte UTF-8 sequence.

com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: Invalid byte 2 of 3-byte UTF-8 sequence.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo