Patch 1692034 - set projects default charset to UTF-8
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpeclipse / wizards / NewProjectCreationWizard.java
index 0601e03..176d442 100644 (file)
@@ -89,6 +89,11 @@ public class NewProjectCreationWizard extends BasicNewResourceWizard implements
                                        }
                                        JavaCore.addPHPNature(newProject, new SubProgressMonitor(
                                                        monitor, remainingWorkUnits));
+
+                                       // patch #1692034 - set the coding of this PHPeclipse
+                                       // project to UTF-8 by default for all operating systems:
+                                       newProject.setDefaultCharset("UTF-8", monitor);
+
                                } catch (CoreException e) {
                                        throw new InvocationTargetException(e);
                                } finally {