my junit shows it does the opposite, although i am not testing the exact
code ...

creating a file from a URI decodes the %20 along with any other utf-8
encoded characters

also, my code was html-styled, so it came out a little funny:


servletContext.setRealPath(new File(FreeMarkerResultTest.class.getResource(
"someFreeMarkerFile.ftl").toURI()).toURL().getFile());


On 1/23/08, Antonio Petrelli <[EMAIL PROTECTED]> wrote:

> 2008/1/23, Brian Relph <[EMAIL PROTECTED]>:
> > This might be prettier -
> >
> > servletContext.setRealPath(*new* File(FreeMarkerResultTest.*class*
> > .getResource("someFreeMarkerFile.ftl").toURI()).toURL().getFile());
>
> Does it transform spaces into %20?
>
> Antonio
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to