I am facing URI encoding problem with non-ASCII characters like Chinese and Japanese. If I "é ???? § § æ ???? ¿?? ¿ç ??" Like giving characters, it does not seem to make a proper URI. Any pointers will be useful. Here is a code snippet
string path = "c: \ é ???? § § § æ ???? æ ?? ¿ç ?? .txt"; File f = new file (path); URI Yuri = F. TOUR (); Println (uri); Yuri = new URI ("file", tap, uri.gatepath (), faucet, faucet); Println (uri); Am I missing something here? Thanks for your help.
I believe your compiler is trying to cure \ é? ?? ? As an escape character, it is not completely valid. In fact, the backslash character is not exactly legal for the URI, per section 2.4.3.
The other character is excluded because the gateways and other transport agents are sometimes known to modify such letters, or they are used as a delimiter.
unwise = "{" | "}" | "|" | "\" | "^" | "[" | "]" | However, some systems (like) convert backslashes silently into forward slashes. I tried to run your code, but ran out of a number of errors which eventually myEclipse had crashed, so it can not be the only issue.
Comments
Post a Comment