Hello All,
       I did a manual encoding these special characters @ + /
I just  replaced (using String replace method) these characters with
percentage and its hexa decimal equivalent UTF-8 codes. It is working
only for english characters, its not working for other lanugages like
chinese, etc.
Any pointers would be helpful. Thanks in advance.



On Dec 30 2008, 4:57 pm, ganesh <[email protected]> wrote:
> Thanks a lot Sangeeta. I didn't notice this method escape() which was
> just next method in the documentation!!
> It is not fully equivalent to the Java API as it doesn't encode @ + /
> Fortunately these are encoded by encodeURIComponent () method. I think
> I need to use combination of these two methods.
>
> Thanks.
>
> On Dec 30, 1:54 pm, Sangeeta Kalyani <[email protected]>
> wrote:
>
>
>
> > Use the global function escape();
>
> > Sangeeta
>
> > On Dec 30, 10:26 am, ganesh <[email protected]> wrote:
>
> > > Hello All,
> > >           Is there any equivalent of Java API - URLEncoder.encode
> > > (String s, String enc) in Flex?
> > > I have used these global functions encodeURI() and encodeURIComponent
> > > () forencodingthe URL. But it doesn't encode some of the special
> > > characters:  - _ . ! ~ * ' ( )
> > > These special characters are encoded by above java API (except  ".",
> > > "-", "*", and "_") . It means java API encodes these characters - ! ~
> > > ' which is not encoded by above flex global functions.
> > > Any pointers would be helpful. Thanks in advance.- Hide quoted text -
>
> > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to