It is a very common scenario that when your application depends on some external sources for input files and then it might be possible that these files may contain some special characters or might be different encoding format is used when this file was written in comparison to what is used for reading. Now for further processing it is important that these special characters should be removed. In this post we will see how to replace unicode characters from a Java String with their corresponding ascii values.
Before looking into the actual java code for replacing unicode characters , lets see what actually Unicode means.
As per the unicode.org definition. Continue reading Replace unicode characters from a Java String