This is the source of a web page
<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
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"
If I go to Visual Studio 2013 in debug, when the create action of the controller is executed, I can see the following string
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
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
ERROR TRANSFORMING XML '' HEXADECIMAL VALUE 0X03 is an invalid character.
How can I avoid this exception being thrown ?