Spaces creates problem in Metro
Stephen McConnell
mcconnell at dpml.net
Thu Mar 31 15:17:46 EST 2005
> -----Original Message-----
> From: dev-dpml-bounces at lists.ibiblio.org
> [mailto:dev-dpml-bounces at lists.ibiblio.org] On Behalf Of
> Alexandros Paramythis
> Sent: Thursday, 31 March 2005 7:42 PM
> To: DPML Development
> Subject: Re: Spaces creates problem in Metro
>
> Niclas Hedhman wrote:
>
> > Hi,
> > Makas is reporting the following problem on a Windows system
> >
> > Apparently spaces in filenames are trouble.
> >
>
> This is a (relatively) well-known problem on Windows. It is
> typically encountered with 'file:' URLs, which do not
> properly encode spaces in several cases.
>
> The available solutions, if I recall correctly are:
>
> * If the URL gets created from a File object, and it is known
> that one ultimately needs a URI, then one can invoke
> f.toURI() instead of f.toURL(). Apparently, the former
> performs the encoding properly.
Solution applied to both the composition testcase handler and the metro unit
utility.
Cheers, Steve.
More information about the dev-dpml
mailing list