Java char '0x8' 这是什么字符?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/2358522/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-13 06:32:06  来源:igfitidea点击:

char '0x8' what character is this?

javaxmlcharhexspecial-characters

提问by OHHAI

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...

我在数据库中有大量数据。当我尝试读取数据的某个部分并生成一些 xml 并将其发送到网络服务时,我收到以下异常...

The char '0x8' in 'java.lang.IllegalArgumentException'.

'java.lang.IllegalArgumentException' 中的字符 '0x8'。

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.

我猜这是一些不好的数据,因为它已经完美运行了大约 7 个月,但现在一些用户上传了一些似乎有一些问题的新数据。

Anyone know what character this is so I can just run a sql query and clean it from the db? Thanks in advance.

任何人都知道这是什么字符,所以我可以运行 sql 查询并从数据库中清除它?提前致谢。

采纳答案by No Refunds No Returns

8 is usually a backspace.

8 通常是退格。

回答by NebuSoft

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

ASCII 字符 0x08(或 8)将是退格字符。ASCII 映射

回答by Surya

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

您可以在将数据存储到 XML 的同时转换为 Binary Base64 来解决这些问题。