Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 323458

Summary: [encoding] File character are not correct
Product: [Eclipse Project] Platform Reporter: handsomemanboy <handsomemanboy>
Component: TextAssignee: Platform-Text-Inbox <platform-text-inbox>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: daniel_megert
Version: 3.6   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description handsomemanboy CLA 2010-08-24 00:19:57 EDT
Build Identifier: Helios Release

I have set the file encoding  UTF-8 at the Perferences's Content Types and workspace,When I create a new java file(or Text file),It sames the file encoding is correct when I clicked the file in the package explorer -> properties windows,show the "Text file encoding" is UTF-8(default),But in fact,the file encoding is ANSI(System default encoding).Only when I create chinese character named file(java or text file) at the eclipse workspace, The file 's real encoding is correct(UTF-8).I tried every version Eclipse£¬3.2 to 3.6, Got the same result.I format my  Disk c, and reinstall the operation system£¬It also like this... my current system is windows7 and before is windows xp. hope your help!

Reproducible: Always
Comment 1 Remy Suen CLA 2010-08-24 05:59:38 EDT
*** Bug 323459 has been marked as a duplicate of this bug. ***
Comment 2 Dani Megert CLA 2010-08-25 02:08:58 EDT
How do you create the file? Note that the setting only affects the way Eclipse tries to read and write the files. It does not change the encoding of already existing files on disk.

Having said that, I cannot reproduce your issue using 3.7 M1 - maybe due to lack of exact steps.

If you still see the problem using 3.7 M1 (http://download.eclipse.org/eclipse/downloads/drops/S-3.7M1-201008051700/index.php), then please reopen this bug and provide a step-by-step test case and/or attach a sample workspace that shows the problem.