Junk character automatically changing after committing code into SVN repository

125 Views Asked by At

I am facing below issue in removing junk character using Java. I am using below code to remove junk character

colData = colData.replace(-­,"- ");

It's working fine locally before committing the code into SVN repository. But when we commit same line of code, its not working. Because its changing above code to below line of code:

colData = colData.replace(-Ã,­,"- ");

Can anyone suggest me why this is happening?

1

There are 1 best solutions below

0
On

It might be an issue with the filesystem. It's better not to use this inside code anyway. Use new (char) 199 , which I believe is the ASCII code for that character, instead.