How to replace umlauts in a line?

Is there a good library that performs the conversation of umlauts and special characters in their "flat" representation? For instance:

ร„ -> AE รœ -> UE รŸ -> ss 

Anything you could advise?

+6
source share
1 answer

use StringUtils , this is not a well-known apache library. This solves your problem.

 replaceUmlauts public static java.lang.String replaceUmlauts(java.lang.String string) Replaces all umlauts in a string. Umlaut Replacement รค ae รถ oe รผ ue รŸ ss Parameters: string - String, where the umlauts has to be replaced Returns: String without umlauts 
0
source

Source: https://habr.com/ru/post/959453/


All Articles