How to set charset encoding property for SVN File and Eclipse

svn propset svn:mime-type "text/plain; charset=UTF-8" filename...


I was struggling with this for a while, and have found another solution. If you're using maven you can set the encoding in the pom. see https://maven.apache.org/general.html.

After you've added this, when you do a Maven > Update Project (Alt + F5) it will set the correct encoding for the project.

<project>
  ...
  <properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  </properties>
  ...
</project>

I had same problem, but solved by setting below:

Set Encoding in Eclipse: Project --> Properties --> Resources --> Text File Encoding --> Other (UTF-8)

Tags:

Svn

Eclipse

Utf 8