| <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
| <html> |
| <head> |
| <meta name="copyright" content="Copyright (c) IBM Corporation and others 2000, 2005. This page is made available under license. For full details see the LEGAL in the documentation book that contains this page." > |
| <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> |
| <meta http-equiv="Content-Style-Type" content="text/css"> |
| <title> |
| Changing the encoding used to show the source |
| </title> |
| <link rel="stylesheet" href="../book.css" charset="ISO-8859-1" type="text/css"> |
| <script language="JavaScript" src="PLUGINS_ROOT/org.eclipse.help/livehelp.js"> </script> |
| </head> |
| <body> |
| <h1> |
| Changing the encoding used to show the source |
| </h1> |
| To change the encoding used by the Java editor to display source files: |
| <ul> |
| <li> |
| With the Java editor open and the file saved, select <strong>Edit > Set Encoding...</strong> from the menu bar |
| </li> |
| <li> |
| Select <strong>Other</strong> and then select an encoding from the menu or type in the encoding's name. |
| </li> |
| </ul> |
| <p> |
| <strong>Notes:</strong> |
| </p> |
| <ul> |
| <li> |
| This setting affects only the way the source is presented--it does not change the file's contents. |
| </li> |
| <li> |
| To change the default encoding used for interpreting text files, |
| <ul> |
| <li> |
| set the workspace default |
| (using the <strong>Text file encoding</strong> section of the |
| <a class="command-link" href='javascript:executeCommand("org.eclipse.ui.window.preferences(preferencePageId=org.eclipse.ui.preferencePages.Workspace)")'> |
| <img src="PLUGINS_ROOT/org.eclipse.help/command_link.png"> |
| <strong>General > Workspace</strong></a> |
| preference page), or |
| </li> |
| <li> |
| set the project- or folder-specific default (<strong>Context menu > Properties > Info > Text file encoding</strong>) |
| </li> |
| </ul> |
| This will change the encoding of all contained files that don't have an explicit encoding set. |
| </li> |
| </ul> |
| |
| <p> |
| <img src="../images/ngrelc.png" alt="Related concepts" border="0" ><br> |
| <a href="../concepts/concepts-7.htm">Java editor</a> |
| </p> |
| <p> |
| <img src="../images/ngrelt.png" alt="Related tasks" border="0" ><br> |
| <a href="tasks-54.htm">Using the Java editor</a> |
| </p> |
| <p> |
| <img src="../images/ngrelr.png" alt="Related reference" border="0" ><br> |
| <a href="../reference/ref-menu-edit.htm">Edit menu</a><a href="../reference/ref-menu-source.htm"></a> |
| </p> |
| |
| </body> |
| </html> |
| |