Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 323458 - [encoding] File character are not correct
Summary: [encoding] File character are not correct
Status: RESOLVED WORKSFORME
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.6   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 323459 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-08-24 00:19 EDT by handsomemanboy CLA
Modified: 2010-08-25 02:08 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.