I have a large amount of data in a database. When I attempt to read a certain portion of the data and generate some xml and send it to a webservice I get the following exception...
The char '0x8' in 'java.lang.IllegalArgumentException'.
I'm guessing it is some bad data, as it has worked perfectly for about 7 months but now some user uploaded some new data that seems to have some issues.
Anyone know what character this is so I can just run a sql query and clean it from the db? Thanks in advance.
@alexpanganiban, the unicode character 0x8 represents a backspace: http://www.unicode-symbol.com/u/0008.html. It shows up within XML Generator's template editor like so (see the pink highlighted period-like character before “Tove”):
If char variable contains int value, we can get the int value by calling Character. getNumericValue(char) method. Alternatively, we can use String. valueOf(char) method.
8 is usually a backspace.
The ASCII Character 0x08 (or 8) would be the Backspace character.ASCII Map
You can convert into Binary Base64 while storing data into XML to solve these issues.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With