Hi,
I am trying to decode only once and I'm getting the exception already.
String decodedspacename = URLDecoder.decode(space, "UTF-8").getpath();
Am 03.06.2014 09:50 schrieb "Clemens Klein-Robbenhaar" <
c.robbenh...@espresto.com>:

> On 06/03/2014 05:16 AM, Daniel Ebanja wrote:
> > Hi,
> > i am receiveing the following exception:
> > Caused by: java.lang.IllegalArgumentException: URLDecoder: Illegal hex
> > characters in escape (%) pattern - For input string: "!<"
> >
>
> Hm, are you sure it is already decoded?
> I can reproduce the error message you get by decoding it twice ...
>
> > My scenario:
> > Users can create space by using a URL that looks like:
> > mydomain.com/xwiki/bin/...?space=
> > %C3%A4%C3%B6%C3%BC%C3%9F%C2%A7%25%21%3C%3E_helloworld
> >
> > i then try to decode this spacename and create the space without success.
> > String decodedspacename = URLDecoder.decode(space, "UTF-8");
> >
> > How should i deal with this?
> > thanks for your help in advance.
> > _______________________________________________
> > users mailing list
> > users@xwiki.org
> > http://lists.xwiki.org/mailman/listinfo/users
> >
>
> _______________________________________________
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>
_______________________________________________
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to