Possible Duplicate:
Converting Symbols, Accent Letters to English Alphabet
I'm not a Java programmer and I'm wanting to replace special characteres with non-special ones. What I'm doing is myString.toLowerCase().replace('ã','a').replace('é','a').replace('é','e')...
but I'm sure there's gotta be a simpler way to do this.
I used to work with PHP and it has this str_replace function
// Provides: You should eat pizza, beer, and ice cream every day
$phrase = "You should eat fruits, vegetables, and fiber every day.";
$healthy = array("fruits", "vegetables", "fiber");
$yummy = array("pizza", "beer", "ice cream");
$newphrase = str_replace($healthy, $yummy, $phrase);
Is there something like that in Java? Or at least something easier than using a replace
to every single charactere I wanna replace.