Community
Participate
Working Groups
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
*** Bug 323459 has been marked as a duplicate of this bug. ***
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.