NetBeans Forums

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

NetBeans 7.1.2 doesn't like '€' (euro) char

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



Joined: 15 Aug 2011
Posts: 2

PostPosted: Sun May 27, 2012 4:56 pm    Post subject: NetBeans 7.1.2 doesn't like '€' (euro) char Reply with quote

Nretbeans 7.1.* seems to not like the '€' (euro) char.

After writing that char into a String, a comment etc.. onto a .java, a .jsp or whatever when I re-open the file the '€' disappear and at its place there are '?' (question-mark).

This issue appears on Windows, Linux (ubuntu and fedora tested) and Mac Os X clients, both on utf-8 and latin1 (iso-8859-1) encoding.

Is there a way to solve this problem?
Back to top
netero



Joined: 25 May 2009
Posts: 207
Location: Switzerland

PostPosted: Thu Jun 07, 2012 6:03 pm    Post subject: Reply with quote

Hello,

I don't think that the Euro sign is in the iso-8859-1. According to this site:
http://fr.wikipedia.org/wiki/ISO_8859-1, the Euro sign did not exist when this encoding was decided. The Euro was added with ISO_8859-15. Sorry this link is in french, it is not so clearly explained in the corresponding
"en" page: http://en.wikipedia.org/wiki/ISO_8859-1.
I don't know if it will be acceptable for you to change your encoding, because there may be problems rewriting all your sources! ([EDIT] I mean converting them)

For a JSP file, I suggest you could use this entity, so all browsers will display it correctly: €

Concerning UTF-8, I don't understand, because I did not have the problem. I tested it in my config, Ubuntu / UTF-8. I stopped NetBeans completely, relaunched it and my € was still there. I compiled and displayed this sign ok in a JFrame (see my attachment).

Hope this helps.
regards. netero



frame-with-euro.png
 Description:
 Filesize:  1.21 KB
 Viewed:  657 Time(s)

frame-with-euro.png


Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> NetBeans 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