From: Hungerburg 13 <pc...@my...> - 2020-11-23 22:27:21
|
Am 23.11.20 um 22:08 schrieb Eduard Drenth: > Another followup on this one: > > Under the hood java.net.URI is used, a URI with either % or brackets > isn't valid, try: > > new URI("test%percent.xml"); > new URI("test[with]brackets.xml"); > Not so quick! You should use another constructor, to work around such awkward characters, see attached java source - beware the path string then must start with a slash. The error message is somehow misleading though. Perhaps the four argument constructor just can do a better guess at what is wanted, URIs are quite a complicated beast. Peter |