Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to set File Encoding to UTF-8 On Save action in JDeveloper 11G R2?

Sujay PatilSep 24 2013 — edited Sep 24 2013

Hello,

I am facing issue when I am modifying a File using JDeveloper 11G R2. JDeveloper is changing the Encoding of the File to System default Encoding (ANSI) instead of UTF-8. I have updated the Encoding to UTF-8 in "Tools | Preferences | Environment | Encoding" option and restarted the JDeveloper. I have also updated "Project Properties | Compiler | Character Encoding" option to UTF-8. None of them are working.

I am using below version of JDeveloper,

Oracle JDeveloper 11g Release 2 11.1.2.3.0

Studio Edition Version 11.1.2.3.0

Product Version: 11.1.2.3.39.62.76.1

I created a file in UTF-8 Encoding. I opened it, do some changes and Save it.

When I open the "Properties" tab using "Help | About" Menu, I can see that the Properties of JDeveloper are showing encoding as Cp1252. Is it related?

Properties

sun.jnu.encodingCp1252
file.encodingCp1252

Any idea how to make sure JDeveloper saves the File in UTF-8 always?

- Sujay

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 22 2013
Added on Sep 24 2013
3 comments
1,968 views