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?
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.