I have a file which has international characters (UTF-8). How so I set this encoding type as a part of svn property and how do I ensure that it overrides automatically default encoding in eclipse i.e. eclipse should automatically set UTF-8 encoding based on the svn property (may be mime-type).
Asked
Active
Viewed 2.0k times
4 Answers
2
I had same problem, but solved by setting below:
Set Encoding in Eclipse: Project --> Properties --> Resources --> Text File Encoding --> Other (UTF-8)

user8345631
- 21
- 3
1
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>

Keshan Nageswaran
- 8,060
- 3
- 28
- 45

Chris M
- 1,058
- 1
- 15
- 26
0
In SVN, I don't know but you can set text file encoding on each file individually: right-click on the file, go to properties and in the resource submenu check 'Other' for Text File Encoding.
-
My requirement is eclipse should auto pickup contenttype/char encoding of the SVN File,I dont want to set it manually. – harrybvp Aug 09 '11 at 16:15