6

Is there any good library that performs conversation of umlauts and special characters to their "flat" representation? Eg:

Ä -> AE
Ü -> UE
ß -> ss

Anything you could advise?

Martin Schröder
  • 4,176
  • 7
  • 47
  • 81
membersound
  • 81,582
  • 193
  • 585
  • 1,120

1 Answers1

0

use StringUtils, This is not the well-known apache library . That is solve your issue.

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
Sireesh Yarlagadda
  • 12,978
  • 3
  • 74
  • 76
Ruchira Gayan Ranaweera
  • 34,993
  • 17
  • 75
  • 115
  • 5
    I wouldn't trust that library to solve anything else than homework assignments. – Marko Topolnik Dec 06 '13 at 09:22
  • 2
    It’s not even a library. It’s an application which happens to contain such a class. Nobody says that other people are allowed to use the class for other programs. – Holger Dec 06 '13 at 09:32