A Configuring JDeveloper to Support UTF-8

This appendix contains the following topics:

A.1 Understanding UTF-8

If you use non-English characters or data in your business services, you must configure JDeveloper to support UTF-8. When you set up preferences and default project properties to support UTF-8 encoding, all existing projects and any new projects that you add show the preferences and the default project property as UTF-8 encoding. You must individually set up each project where you have non-English characters or data to show UTF-8 as the encoding value.

You are not required to set up UTF-8 encoding when you test web services.

A.2 Configuring Preferences

To configure preferences to support UTF-8:

  1. On JDeveloper, select the Applications folder or any project folder and then select Preferences from the Tools menu.

  2. On Preferences, select Environment.

  3. In the Environment pane, select UTF8 from the Encoding drop-down list box.

  4. Click OK.

    All projects in the workspace show UTF8 as the value for the Encoding field when you select Preferences from the Tools menu.

A.3 Configuring Default Project Properties

To configure default project properties to support UTF-8:

  1. On JDeveloper, select the Applications folder, the workspace folder, or any project folder, and then select Project Properties from the Tools menu.

  2. In the navigation pane on Project Properties, select Compiler.

  3. In the Compiler pane, select UTF8 from the Character Encoding drop-down list box.

  4. Click OK.

    All projects in the workspace show UTF8 as the value for the Character Encoding field when you select Default Project Properties from the Tools menu.

A.4 Configuring a Project

To configure a project to support UTF-8:

  1. On JDeveloper, right-click the project folder that will include non-English data, and then select Project Properties from the context menu.

  2. In the navigation pane on Project Properties, select Compiler.

  3. In the Compiler pane, select UTF8 from the Character Encoding drop-down list box.

  4. Click OK.

    Only the selected project shows UTF8 as the value for the Character Encoding field.

  5. Restart JDeveloper.

You can insert non-English data and run your project.