Community
Participate
Working Groups
When I try to use acents on java source codes, in any times, occurs very problems. Hasn't a mode of improve that ? -- Configuration Details -- Product: Eclipse 4.6.1.20161007-1200 (org.eclipse.epp.package.java.product) Installed Features: org.eclipse.jdt 3.12.1.v20160907-1200
Please provide more details, e.g. a test snippet.
Created attachment 266658 [details] Class with accented name. I put an accent on the name of one class.
Created attachment 266659 [details] Error caused by accents use. Then, appeared an compile problem on another class.
Created attachment 266663 [details] More problems with accents. I put accents on some class names. The text file encoding of the app was Cp1252, then I changed to ISO-8859-1. And I noted that the class where appeared the error had the encoding UTF-8, then, I changed to ISO-8859-1 too, then appered that error.
Created attachment 266664 [details] More errors And that.
Created attachment 266666 [details] Errors after change to UTF-8 Then, I changed to UTF-8 and the errors changed to that.
Created attachment 266667 [details] Error on class name. That is the error on the class name.
I can't reproduce this. I suspect that you either have a wrong encoding on the workspace and/or project and/or launch configuration. NOTE: You can't just change the encoding when the file already got created with a different encoding. For more details see http://www.eclipse.org/eclipse/platform-text/development/bug-incomplete.htm.
I verified in a moment that the errors was occurring only in J2ME Projects of the MTJ. Sorry for the mistake.
(In reply to Antônio Diego from comment #9) > Sorry for the mistake. np
I noticed that in the Java Language Specification contains that the programmer can use Unicode escapes to write non-ASCII characters in java souce code files. I think that that is usefull for people that speak other idiom that not the English and need use non-ASCII characters to write some words of your idiom properly in source files because that prevents many corruption problems like in the case in which they need to interchange your code enter IDEs or Text Editors. So. It would not be a good thing to have an automated form to translate non-ASCII charaters to Unicode escapes on the IDE ? Or is there something I do not know that makes it a bad idea?