Patch 1692034 - set projects default charset to UTF-8
authoraxelcl <axelcl>
Sun, 1 Apr 2007 16:38:58 +0000 (16:38 +0000)
committeraxelcl <axelcl>
Sun, 1 Apr 2007 16:38:58 +0000 (16:38 +0000)
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 {