I have the following url: http://hi.baidu.com/%B1%F9%BA%F8%C7%EF%D4%C2
when I use the new Uri constructor on it, it "compact the url" to a format that is not valid, I looked into the URI documentation and I found the following paragraph:
"As part of canonicalization in the constructor for
some schemes, escaped representations are compacted. The schemes for which URI will compact escaped sequences include the following: file, http, https, net.pipe, and net.tcp. For all other schemes, escaped sequences are not compacted. For example: if you percent
encode the two dots ".." as "%2E%2E" then the URI constructor will compact this sequence for some schemes. For example, the following code sample shows a URI constructor for the http scheme."
so it does alter the url if it has http schema, but does not touch it when it's ftp. Is there a way to force new URI constructor to not touch the url?
I have to assign a uri object and this is screwing up the input url!
View Complete Post