From: Eduard D. <ed...@fr...> - 2020-11-24 06:15:53
|
What I am saying is that exist-db uses this constrructor -----Original Message----- From: Hungerburg 13 <pc...@my...<mailto:Hungerburg%2013%20%3c...@my...%3e>> To: exi...@li...<mailto:exi...@li...> Subject: Re: [Exist-open] Filenames with awkward characters in eXist-db? Date: Mon, 23 Nov 2020 23:27:04 +0100 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 _______________________________________________ Exist-open mailing list <mailto:Exi...@li...> Exi...@li... <https://lists.sourceforge.net/lists/listinfo/exist-open> https://lists.sourceforge.net/lists/listinfo/exist-open -- Eduard Drenth, Software Architekt ed...@fr...<mailto:ed...@fr...> Doelestrjitte 8 8911 DX Ljouwert +31 58 234 30 47 +31 62 094 34 28 (privé) skype: eduarddrenth https://github.com/eduarddrenth frisian.eu gpg: https://pgp.surfnet.nl/pks/lookup?search=eduarddrenth Op freed bin ik thús/wurkje ik minder |