Solved

the mobile text message was always cut off by the ampersand “&”

  • 27 August 2019
  • 4 replies
  • 7 views

Badge

I tried to use TwilioSMSSender to send a web link text message to my mobile. The text message was http://qgsp.maps.arcgis.com/apps/webappviewer/index.html?id=56fc6ae6f9cb4d5b8aaa554126cc50e0&find=260819MKY1 . However, the text message was always cut off by the ampersand “&”, which means my text message received was http://qgsp.maps.arcgis.com/apps/webappviewer/index.html?id=56fc6ae6f9cb4d5b8aaa554126cc50e0 .Any suggestions will be appreciated. Thank you.

icon

Best answer by syang 27 September 2021, 06:57

View original

4 replies

Userlevel 4

It could be that the ampersand is interfering with the API. Maybe try using the TextEncoder set to URL encoding first.

Badge

@david_r It solved the problem, thank you very much!

HI IAM FACING SAME PROBLEM . CAN YOU PROVIDE ME SOME ADVICE HOW TO DEAL WITH & IN TWILLIO

Badge

@manjeetgrang​ using %26 replace "&"

Reply