Bug 510576 - Problems on accents use
Summary: Problems on accents use
Status: REOPENED
Alias: None
Product: MTJ (Archived)
Classification: Tools
Component: MTJ projects (show other bugs)
Version: 1.1.1   Edit
Hardware: PC Windows 10
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2017-01-17 08:45 EST by Antônio Diego CLA
Modified: 2017-10-30 14:09 EDT (History)
1 user (show)

See Also:


Attachments
Class with accented name. (793 bytes, image/png)
2017-02-06 06:02 EST, Antônio Diego CLA
no flags Details
Error caused by accents use. (3.85 KB, image/png)
2017-02-06 06:07 EST, Antônio Diego CLA
no flags Details
More problems with accents. (882 bytes, image/png)
2017-02-06 06:27 EST, Antônio Diego CLA
no flags Details
More errors (698 bytes, image/png)
2017-02-06 06:28 EST, Antônio Diego CLA
no flags Details
Errors after change to UTF-8 (749 bytes, image/png)
2017-02-06 07:08 EST, Antônio Diego CLA
no flags Details
Error on class name. (724 bytes, image/png)
2017-02-06 07:09 EST, Antônio Diego CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Antônio Diego CLA 2017-01-17 08:45:55 EST
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
Comment 1 Dani Megert CLA 2017-01-17 08:50:34 EST
Please provide more details, e.g. a test snippet.
Comment 2 Antônio Diego CLA 2017-02-06 06:02:16 EST
Created attachment 266658 [details]
Class with accented name.

I put an accent on the name of one class.
Comment 3 Antônio Diego CLA 2017-02-06 06:07:11 EST
Created attachment 266659 [details]
Error caused by accents use.

Then, appeared an compile problem on another class.
Comment 4 Antônio Diego CLA 2017-02-06 06:27:22 EST
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.
Comment 5 Antônio Diego CLA 2017-02-06 06:28:37 EST
Created attachment 266664 [details]
More errors

And that.
Comment 6 Antônio Diego CLA 2017-02-06 07:08:47 EST
Created attachment 266666 [details]
Errors after change to UTF-8

Then, I changed to UTF-8 and the errors changed to that.
Comment 7 Antônio Diego CLA 2017-02-06 07:09:56 EST
Created attachment 266667 [details]
Error on class name.

That is the error on the class name.
Comment 8 Dani Megert CLA 2017-03-22 13:02:15 EDT
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.
Comment 9 Antônio Diego CLA 2017-03-22 19:36:16 EDT
 I verified in a moment that the errors was occurring only in J2ME Projects of the MTJ. Sorry for the mistake.
Comment 10 Dani Megert CLA 2017-03-23 10:30:09 EDT
(In reply to Antônio Diego from comment #9)
> Sorry for the mistake.

np
Comment 11 Antônio Diego CLA 2017-10-30 14:09:34 EDT
 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?