Nothing to do with your question, but why are you creating a new Uri here? You can simply do string queryFromVendor = Request.Url.Query.Substring(1) ; - atticae
+1 for the attic! I came back to try to remove the extraneous Uri that I created, and suddenly the line was umlaut, encoded as UTF-8 instead of UTF-16.
At first, I did not think it would work. Somewhere along the line, I tried to restore the URL using
Request.QueryString , but it made the umlaut pass as
%ufffd , which is a symbol .. In the interest of getting a fresh perspective, I tried to offer a suggestion, and it worked.
I am sure that the answer is related to what I read here .
C # uses UTF-16 in all of its lines, with coding tools when it comes to streams and files that lead us to ...
ASP.NET uses UTF-8 by default, and it's hard to think about a time when this is not a good choice ...
My problems arose here ...
Uri uriFromVendor = new Uri(Request.Url.ToString());
By accepting Request.Url uri and creating another uri, it was encoded as the C # UTF-16 standard. Using the original uri, it remained in the .Net UTF-8 standard.
Thank you all for your help.
Colin
source share