1

In part of my code in a SharePoint 2010/2013 program, I do the following:

HtmlPage.Window.Navigate(new Uri(url, UriKind.RelativeOrAbsolute), "_blank");

Where the url has something like ?doc=äñǣ.tif (to test unicode).

On the other side, I want to grab that doc variable from the request:

this.Request.QueryString["doc"];

In 2010, this correctly comes back as %u00e4%u00f1%u01e3.tif, which then can be parsed into äñǣ.tif.

However, in 2013, I get something totally different: %u00c3%u00a4%u00c3%u00b1%u00c7%u00a3.tif which parses into �?¤�?±Ç£.tif which is wrong.

Do I need to specify some kind of UTF encoding for Htmlpage.Window.Navigate for this to work properly? How? Is there some telltale sign that the 2013 doc variable is some totally different encoding?

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.