url encoding - use persian character in query string with angularjs -


The query string has a persistent letter but the url is as follows:

  localhost: 53297 / # / Items / news / 1-1-1-3? Title =% D8% B1% D9% 88% D9% 86% D9% 85% D8% A7% DB% 8C% dB% 8C% 20% D8% A7% D8% B2% 20% D8% A.A. .% D8% A8% D9% 84% D8% AA% 20% D9% 87% D8% A7% DB% 8C% 20% D8% B4% D8% B1% DA% A9% D8 % AA% 20 HP  

I want a URL like this:

  localhost: 53297 / # / items / news / 1-1-1-3? Title = طلا-نقره  

attempt to use decoderi comp (yourUrl)

And globally you can use something like this

  $ rootScope $ ('$ LocationChangeStart', function (e, newUrl, oldUrl) {$ location. $$ AbsUrl = decodeurIComponent (newUrl);});  

Comments