You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Nicky Sandhu (JIRA)" <ji...@apache.org> on 2007/10/01 02:58:23 UTC
[jira] Commented: (CAMEL-162) Encoding the unsafe characters in URI
[ https://issues.apache.org/activemq/browse/CAMEL-162?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_40221 ]
Nicky Sandhu commented on CAMEL-162:
------------------------------------
URLEncoder in java.net package already implements this. I suggest using that
http://java.sun.com/j2se/1.3/docs/api/java/net/URLEncoder.html
> Encoding the unsafe characters in URI
> -------------------------------------
>
> Key: CAMEL-162
> URL: https://issues.apache.org/activemq/browse/CAMEL-162
> Project: Apache Camel
> Issue Type: Improvement
> Components: camel-core
> Affects Versions: 1.1.0
> Reporter: Willem Jiang
> Fix For: 1.2.0
>
> Attachments: encoder.patch
>
>
> In RFC1738, there some unsafe characters need to encode, they are
> Space Quotation marks 'Less Than' symbol ("<") 'Greater Than' symbol (">") 'Pound' character ("#") Percent character ("%")
> Left Curly Brace ("{") Right Curly Brace ("}") Vertical Bar/Pipe ("|") Backslash ("\") Caret ("^") Tilde ("~") Left Square Bracket ("[") Right Square Bracket ("]") Grave Accent ("`")
> So I wrote an UnsafeCharactersEncoder to do this job, the unit test also was included.
> Please review and apply the patch .
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.