I have to replace a string whit special character like this: XY_Universit�-WWWWW-ZZZZZ in another one like: XY_Universita-WWWWW-ZZZZZ.
I tried solutions like stringToReplace.replaceAll(".*Universit.*", "Universita"); but it replace all the string with the word ''Universita" and it isn't what i want.
java.nio.file.Files.readAllLines(java.nio.file.Paths.get("file.txt"), java.nio.charset.Charset.forName("Windows-1252")). Substitute in whatever encoding you know the file to be using.