String s = "VIRÚ";
In my string s I have a special charecter, this is a spanish charecter and I want to remove this and all spanish special charecter from my string. How can I remove.
Expected output
VIRU
String s = "VIRÚ";
In my string s I have a special charecter, this is a spanish charecter and I want to remove this and all spanish special charecter from my string. How can I remove.
Expected output
VIRU
Use StringUtils.stripAccents of Apache Commons:
String output = StringUtils.stripAccents("VIRÚ"); 
System.out.println(output); // VIRU
Maven dependency:
<dependency>
    <groupId>org.apache.commons</groupId>
    <artifactId>commons-lang3</artifactId>
    <version>3.6</version>
</dependency>