Bug 55880 - contents of generated java files is not obeying platform encoding
Summary: contents of generated java files is not obeying platform encoding
Status: RESOLVED DUPLICATE of bug 55930
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Andre Weinand CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-24 08:47 EST by Markus Keller CLA
Modified: 2004-03-25 11:15 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Keller CLA 2004-03-24 08:47:25 EST
I20040324-0010:

- Preferences > Workbench > Editors: Set "Text File Encoding" to "UTF-16BE".
- create new plugin-project with wizard or
- create new type in a java project

-> generated files don't have an encoding set (no bullet in the menu), but their
contents is written in the OS's encoding, and not in the platform's encoding
(from the preferences).
-> the generated files produce garbage in the editor if their encoding is not
manually set to the OS encoding.

Generated code should always be generated in the platform's encoding.
Comment 1 Dirk Baeumer CLA 2004-03-24 12:49:46 EST
Andre, is this a side effect of the new encoding story.
Comment 2 Andre Weinand CLA 2004-03-25 11:15:40 EST

*** This bug has been marked as a duplicate of 55930 ***