十六进制值0X03是无效字符 [英] HEXADECIMAL VALUE 0X03 is an invalid character
问题描述
这是网页的来源
<html lang="pl">
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
</head>
<body>
<p>Da brow#a G�rnicza<p>
</body>
</html>
我需要浏览此页面并复制显示的文字
I need to browse this page and copy the text shown
之后,我将此文本粘贴到asp.net mvc应用程序的输入文本框中,以便在数据库中创建新记录. 布局页面的元字符集为"utf-8"
After that, I have pasted this text into an input text box of an asp.net mvc application in order to create a new record into the database. The meta charset of the layout page is "utf-8"
如果我在调试中进入Visual Studio 2013,则在执行控制器的create动作时,我会看到以下字符串
If I go to Visual Studio 2013 in debug, when the create action of the controller is executed, I can see the following string
此地址已存储到类型为nvarchar(255)的列中,并且从sql管理工具中,我看到了与以前相同的文本:
This address has stored into a column of type nvarchar(255), and from sql management tool I see the same text as seen before:
如果我将地址从数据库列复制并粘贴到记事本++中,则可以看到
If I copy and paste the address from database column to notepad++ I can see
此后,我必须调用svc服务才能发送地址数据,但我从另一端收到此异常
After that I have to call a svc service in order to send the address data but I am receiving from the other side this exception
错误转换XML''十六进制值0X03无效 字符.
ERROR TRANSFORMING XML '' HEXADECIMAL VALUE 0X03 is an invalid character.
如何避免抛出此异常?