I have used SAX parser to parse a WSDL document. After parsing some special characters like �
have been added in the end. How to escape those characters in Java?
Asked
Active
Viewed 409 times
1

Mad Physicist
- 107,652
- 25
- 181
- 264

EnthuDev
- 170
- 2
- 3
- 15
-
[Escape Characters](https://docs.oracle.com/javase/tutorial/java/data/characters.html) – DimaSan Aug 29 '16 at 18:54
-
What do you mean by special characters *added* in the end? Parsing is a read operation, so nothing is added to the XML. So, added to the end of *what*? --- FYI: � is usually a sign that your reading the XML document using the wrong code page / character set. – Andreas Aug 29 '16 at 18:56
-
You should replace all non ascii characters http://stackoverflow.com/questions/8519669/replace-non-ascii-character-from-string – Woody Aug 29 '16 at 19:09
-
Special characters like & # 55357 – EnthuDev Aug 29 '16 at 19:41
-
In the above post special characters got replaced – EnthuDev Aug 29 '16 at 19:41
-
Which character set I should use and how to set the character set – EnthuDev Aug 29 '16 at 19:43
-
2Please edit your post and show the code you use to read the WSDL. – VGR Aug 29 '16 at 19:56