Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

char '0x8' what character is this?

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.

like image 801
OHHAI Avatar asked Mar 01 '10 19:03

OHHAI


People also ask

What is Unicode 0x8?

@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”):

How do you find the char value?

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.


3 Answers

8 is usually a backspace.

like image 155
No Refunds No Returns Avatar answered Sep 29 '22 10:09

No Refunds No Returns


The ASCII Character 0x08 (or 8) would be the Backspace character.ASCII Map

like image 20
NebuSoft Avatar answered Sep 29 '22 09:09

NebuSoft


You can convert into Binary Base64 while storing data into XML to solve these issues.

like image 30
Surya Avatar answered Sep 29 '22 08:09

Surya