I am trying to call a java GET RESTful service with an email address from Ionic 2 (javascript). It works fine, however, when I add a dot (e.g. .com) to an email address, it loses all the characters from the dot when it reaches the service.
How do I encode a URI to send an email address to a service?
I use:
'/list/email/' + encodeURIComponent(email)
but if the email address is: email@domain.comit reaches the service like email@domain.
I tried:
'/list/email/' + email
'/list/email/' + encodeURI(email)
'/list/email/' + encodeURIComponent(email)
all give the same result
thank
source
share