If my current uri has some unicode-string like
string local = @"E:\サwォ’アフィ.txt"; and then I use a Uri to wrap it as
Uri uri = new Uri(local). But in the debug window, it shows me as follows..
-uri{file:///E:/サwォ’アフィ;txt}System.Uri
AbsolutePath"E:/%E3%82%B5%EF%BD%97%E3%82%A9%E2%80%99%E3%82%A2%E3%83%95%E3%82%A3;txt"string
AbsoluteUri"
file:///E:/%E3%82%B5%EF%BD%97%E3%82%A9%E2%80%99%E3%82%A2%E3%83%95%E3%82%A3;txt"string
Itlooks like the property AbsolutePath and AbsoluteUri cannot show the expeceted Japanese, but only uri.ToString() does, and I do not see there is any Encoding related parameter in the Uri constructor, so if I still want my method to use AbsolutePath/AbsoluteUri under differrent lanuage input, how can I deal with it? Any one has the idea?
Thanks in advance,
Jovi