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 <kalyani.sange...@gmail.com> wrote: > Use the global function escape(); > > Sangeeta > > On Dec 30, 10:26 am, ganesh <ganeshnay...@gmail.com> 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 > > () for encoding the 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 - --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Flex India Community" group. To post to this group, send email to flex_india@googlegroups.com To unsubscribe from this group, send email to flex_india+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/flex_india?hl=en -~----------~----~----~----~------~----~------~--~---