SAP Knowledge Base Article - Preview

1943422 - Sybase Unwired Platform URL encoded data not getting decrypted - SUP/SMP


User is running a DCN Request to the Sybase Unwired Platform HttpAuthDCNServlet with special characters.  Since they are using special characters, they are attempting to use URLEncoder per the documentation at

1.  User attempts Java code such as:

   String urltest="http://"+ server +":8000/dcn/DCNServlet?cmd=dcn&username=supAdmin&password=s3pAdmin&domain=default";
   urltest+="&dcn_request="+ URLEncoder.encode("{\"pkg\":\"sup101\",\"messages\":[{\"id\":\"4\",\"mbo\":\"Customer\",\"op\":\":upsert\",\"cols\":{\"address\":\"testaddr\",\"city\":\"test city\",\"company_name\":\"test&co\",\"fname\":\"test@fn\",\"id\":555,\"lname\":\"test+ln\",\"phone\":\"testpn\",\"state\":\"MX\",\"zip\":\"testzp\"}}]}",encode1);

2.  Problem is data in CacheDB database is not encoded properly and characters such as @ + & are causing HTTP 400 errors with invalid JSON request or data is showing up as %40 %20 or other invalid non-encoded characters.



  • Sybase Unwired Platform 2.2.4
  • DCN Request
  • MBO


SAP Mobile Platform 2.3 ; Sybase Unwired Platform 1.5.2 ; Sybase Unwired Platform 1.5.5 ; Sybase Unwired Platform 2.0 ; Sybase Unwired Platform 2.1 ; Sybase Unwired Platform 2.2


  • DCN
  • Special Characters
  • HttpAuthDCNServlet
  • EncodeURL
, KBA , MOB-SUP-DCN , Sybase Data Change Notification , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.