简体   繁体   English

十六进制值0x1E,是无效字符

[英]hexadecimal value 0x1E, is an invalid character

I am loading a lot of xml document and some of them return error like '', hexadecimal value 0x1E, is an invalid character. Line 1, position 202021. 我正在加载许多xml文档,其中一些返回错误,如'', hexadecimal value 0x1E, is an invalid character. Line 1, position 202021. '', hexadecimal value 0x1E, is an invalid character. Line 1, position 202021. and there are different character. '', hexadecimal value 0x1E, is an invalid character. Line 1, position 202021.并且具有不同的字符。 How to remove them? 如何删除它们?

Removing them is easy, but unsafe. 删除它们很容易,但是不安全。 For example if they are part of a digital signature, the digital signature will become invalid if you remove selected characters. 例如,如果它们是数字签名的一部分,则如果删除所选字符,数字签名将变得无效。

When someone sends you bad XML you need to find out where it came from and get it fixed at source. 当有人向您发送错误的XML时,您需要找出它的来源并将其固定在源头。 If you acquired an electrical appliance whose power plug didn't fit in your power socket, you wouldn't try to bend the pins to make it fit - you would take it back to the shop where you bought it and complain. 如果您购买了电源插头未插入电源插座的电器,则不会尝试弯曲插针使其适合-您将其带回购买该产品的商店并投诉。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM