Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Configure Eclipse to Use Tomcat

...

Configure Eclipse Editor

...

for UTF-8

Note

On a Linux environment the Text file encoding will already default to UTF-8 so you can skip this step. This article http://www.eclipsezone.com/eclipse/forums/t93442.rhtml shows how to do it with a file in Windows. I am a bit suspicious if this covers everything though... will check out soon.

On the Windows environment, the default encoding is not UTF-8. As such modification need to be made ensure special characters work properly.

Editing UTF-8 Files

Note

On a Linux environment the Text file encoding will already default to UTF-8 so you can skip this step.

All our property files must be UTF-8 with no BOM (Byte Order Marking). For Eclipse to properly edit the UTF-8 property files,

  • Window, Preferences
  • General, Content Types, Text,
    • Java Properties File
      • Change Default encoding from ISO-8859-1 to UTF-8
      • Click Update
    • JSP
      • Change Default encoding from ISO-8859-1 to UTF-8
      • Click Update
  • General, Workspace *
    • Text file encoding, Other
    • Change Cp1252(this may differ depending on your OS)  to UTF-8
    • Click Apply
Note

On a Linux environment the Text file encoding will already default to UTF-8 so you can skip this step. This article http://www.eclipsezone.com/eclipse/forums/t93442.rhtml shows how to do it with a file in Windows. I am a bit suspicious if this covers everything though... will check out soon.

Creation of Web Files in UTF-8

...

  • Window, Preferences, Web
  • Encoding, change the following to ISO 10646/Unicode(UTF-8),

Initial Project Setup

At this point there are two methods of setting up the Project, manual or automatic.