NetBeans Forums
| View previous topic :: View next topic |
| Author |
Message |
DarkRadeon
Joined: 15 Aug 2011 Posts: 2
|
Posted: Sun May 27, 2012 4:56 pm Post subject: NetBeans 7.1.2 doesn't like '€' (euro) char |
|
|
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
|
Posted: Thu Jun 07, 2012 6:03 pm Post subject: |
|
|
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
| Description: |
|
| Filesize: |
1.21 KB |
| Viewed: |
658 Time(s) |

|
|
|
| Back to top |
|
 |
|
|
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
|
|