When URL includes surrogate pair char., program encodes in URF-8 and accesses in URLConnection,
an exception appears.
REPRODUCE:
Compile the attached TEST.java and invoke java TEST. The following exception shows up.
K:\shares2\hitachi\URLencoding-UTF8>java TEST
1st connect...
URL=file:///c:/temp/%F0%A1%88%BD.xml
java.lang.IllegalArgumentException
at sun.net.www.ParseUtil.decode(ParseUtil.java:185)
at sun.net.www.protocol.file.Handler.openConnection(Handler.java:65)
at sun.net.www.protocol.file.Handler.openConnection(Handler.java:55)
at java.net.URL.openConnection(URL.java:945)
at TEST.main(TEST.java:12)
2nd connect...
succeeded