Use the globally available encodeURIComponent function to encode the values in your query parameters.
On Sat, Aug 20, 2016, 01:42 PRao <[email protected]> wrote: > Hi - I am trying to make http call with url having special characeters > like underscore and period > Like http://localhost:8100?filename=Test_test1_test2.jpg > > I am using this in img src as url --- Since it is not able to encode the > underscore and period. > > It is failing to load the image. > > > Please sugesst how to encode these characters. > > > > -- > You received this message because you are subscribed to the Google Groups > "AngularJS" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/angular. > For more options, visit https://groups.google.com/d/optout. > -- Lucas Lacroix Computer Scientist Advanced Technology Division, MEDITECH <http://ehr.meditech.com/> 781-774-2293 -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
