You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-dev@jakarta.apache.org by Truong Nguyen <nn...@ibs-dp.com> on 2004/04/21 07:06:36 UTC
Class for escape the path contains non-ascii, unicode characters cause "invalid uri" exception
/**
* This class help encode the path contains invalid characters.
*
* <P> When path contains special characters such as '{', '}'
* or Unicode character. When the application executes
* PropFind, PropPatch, Move, Delete method etc..., can cause
exception
* "invalid URI"
*
* <PRE>
* Example: When we fetch an entry of Calendar of MS Exchange server
*
* path =
PathEncoder.encode("exchange/user/calendar/{0994-232-EDSG-121}.eml",
"UTF-8");
* // path is "exchange/user/calendar/7B0994-232-EDSG-1217B.eml"
* PropFindMethod pfm = new
PropFindMethod(path,DepthSupport.DEPTH_0);
* // Now safe to execute this method
*
* </PRE>
*/
See attachment for java file.
Truong
Re: Class for escape the path contains non-ascii, unicode characters
cause "invalid uri" exception
Posted by Oliver Zeigermann <oz...@c1-fse.de>.
Ahh, I see. Thanks a lot!
Oliver
Truong Nguyen wrote:
> Hi Oliver,
>
> If you see that it's necessary, you can add it to Slide project.
>
> I post it to list for developers who need it or encounter same problem.
>
> Truong Nguyen.
>
> ----- Original Message -----
> From: "Oliver Zeigermann" <oz...@c1-fse.de>
> To: "Slide Developers Mailing List" <sl...@jakarta.apache.org>
> Sent: Wednesday, April 21, 2004 2:09 PM
> Subject: Re: Class for escape the path contains non-ascii, unicode
> characters cause "invalid uri" exception
>
>
>
>>What do you want us to do with it?
>>
>>Oliver
>>
>>Truong Nguyen wrote:
>>
>>
>>>/**
>>> * This class help encode the path contains invalid characters.
>>> *
>>> * <P> When path contains special characters such as '{', '}'
>>> * or Unicode character. When the application executes
>>> * PropFind, PropPatch, Move, Delete method etc..., can cause
>>>exception
>>> * "invalid URI"
>>> *
>>> * <PRE>
>>> * Example: When we fetch an entry of Calendar of MS Exchange
>
> server
>
>>> *
>>> * path =
>>>PathEncoder.encode("exchange/user/calendar/{0994-232-EDSG-121}.eml",
>>>"UTF-8");
>>> * // path is "exchange/user/calendar/7B0994-232-EDSG-1217B.eml"
>>> * PropFindMethod pfm = new
>>>PropFindMethod(path,DepthSupport.DEPTH_0);
>>> * // Now safe to execute this method
>>> *
>>> * </PRE>
>>> */
>>>
>>>See attachment for java file.
>>>
>>>Truong
>>>
>>>
>>>
>>>
>>>------------------------------------------------------------------------
>>>
>>>---------------------------------------------------------------------
>>>To unsubscribe, e-mail: slide-dev-unsubscribe@jakarta.apache.org
>>>For additional commands, e-mail: slide-dev-help@jakarta.apache.org
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: slide-dev-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: slide-dev-help@jakarta.apache.org
>>
>>
>>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: slide-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: slide-dev-help@jakarta.apache.org
>
>
> .
>
---------------------------------------------------------------------
To unsubscribe, e-mail: slide-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-dev-help@jakarta.apache.org
Re: Class for escape the path contains non-ascii, unicode characters cause "invalid uri" exception
Posted by Truong Nguyen <nn...@ibs-dp.com>.
Hi Oliver,
If you see that it's necessary, you can add it to Slide project.
I post it to list for developers who need it or encounter same problem.
Truong Nguyen.
----- Original Message -----
From: "Oliver Zeigermann" <oz...@c1-fse.de>
To: "Slide Developers Mailing List" <sl...@jakarta.apache.org>
Sent: Wednesday, April 21, 2004 2:09 PM
Subject: Re: Class for escape the path contains non-ascii, unicode
characters cause "invalid uri" exception
> What do you want us to do with it?
>
> Oliver
>
> Truong Nguyen wrote:
>
> > /**
> > * This class help encode the path contains invalid characters.
> > *
> > * <P> When path contains special characters such as '{', '}'
> > * or Unicode character. When the application executes
> > * PropFind, PropPatch, Move, Delete method etc..., can cause
> > exception
> > * "invalid URI"
> > *
> > * <PRE>
> > * Example: When we fetch an entry of Calendar of MS Exchange
server
> > *
> > * path =
> > PathEncoder.encode("exchange/user/calendar/{0994-232-EDSG-121}.eml",
> > "UTF-8");
> > * // path is "exchange/user/calendar/7B0994-232-EDSG-1217B.eml"
> > * PropFindMethod pfm = new
> > PropFindMethod(path,DepthSupport.DEPTH_0);
> > * // Now safe to execute this method
> > *
> > * </PRE>
> > */
> >
> > See attachment for java file.
> >
> > Truong
> >
> >
> >
> >
> > ------------------------------------------------------------------------
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: slide-dev-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: slide-dev-help@jakarta.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: slide-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: slide-dev-help@jakarta.apache.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: slide-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-dev-help@jakarta.apache.org
Re: Class for escape the path contains non-ascii, unicode characters
cause "invalid uri" exception
Posted by Oliver Zeigermann <oz...@c1-fse.de>.
What do you want us to do with it?
Oliver
Truong Nguyen wrote:
> /**
> * This class help encode the path contains invalid characters.
> *
> * <P> When path contains special characters such as '{', '}'
> * or Unicode character. When the application executes
> * PropFind, PropPatch, Move, Delete method etc..., can cause
> exception
> * "invalid URI"
> *
> * <PRE>
> * Example: When we fetch an entry of Calendar of MS Exchange server
> *
> * path =
> PathEncoder.encode("exchange/user/calendar/{0994-232-EDSG-121}.eml",
> "UTF-8");
> * // path is "exchange/user/calendar/7B0994-232-EDSG-1217B.eml"
> * PropFindMethod pfm = new
> PropFindMethod(path,DepthSupport.DEPTH_0);
> * // Now safe to execute this method
> *
> * </PRE>
> */
>
> See attachment for java file.
>
> Truong
>
>
>
>
> ------------------------------------------------------------------------
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: slide-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: slide-dev-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: slide-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-dev-help@jakarta.apache.org