sudheen

sudheen

  • 1.4k
  • 313
  • 83.4k

Invariant culture handling in Json Payload

May 17 2018 3:40 AM
Hi,
 
Iam creating custom fields using API call. 
  1. var response = WebClient.UploadString(url, httpMethod, requestDataStr);  
  2. requestDataStr is a json payload with following data  
  3. {  
  4. "id""Escritório local - Brasil",  
  5. "description""Description for EscritriolocalBrasil",  
  6. "enabled"true,  
  7. "wstype""custom5",  
  8. "database""TPSDK",  
  9. "hipaa"false  
  10. }  
if i pass normal english string to id , it is working fine. if i pass
 
portuguese string to id so,getting following error.i
 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<title>400 Bad Request</title>
<h1>Bad Request</h1>
<p>The browser (or proxy) sent a request that this server could not understand.</p>
 
Please can anyone help...