I have big problem with replacing some characters in Java. I would like to remove all characters that are not letters, numbers or special national characters such as "ę, ą". When I use the function replaceAll("\W", " ")
special characters are also removed.
Example string: "Jest źle, ale będzie lepiej."
How it's replaced: "Jest le ale b dzie lepiej "
How it should be: "Jest źle ale będzie lepiej "
Sorry for my not very good english :)