Hi, We are developing a mobile application which provides multi language selection (Arabic & English). but we are having an issue with displaying returned JSON which has Arabic text. The output we get is as below. Our .net client throws the following exception. Appreciate your kind help and thank you in advance.
[net_WebHeaderInvalidControlChars]
Arguments:
Debugging resource strings are unavailable. Often the key and arguments provide sufficient information to diagnose the problem. See http://ift.tt/1hDWvtY
Parameter name: name”
Returned JSON:
http://ift.tt/18HFA7V
Connection ? Keep-Alive
Content-Type ? application/json; charset=UTF-8
Date ? Fri, 27 Feb 2015 03:35:43 GMT
Keep-Alive ? timeout=1, max=100
Last-Modified ? Thu, 26 Feb 2015 14:43:55 GMT
Link ? <http://ift.tt/1AzsiA0;; rel="item"; title="387 Ù?اعب Ù?Ù?اعبة ضÙ?Ù? ÙعاÙ?Ù?ات اÙ?تدرÙ?ب اÙ?Ù?ستÙ?ر Ù?اÙ?تشا٠اÙ?Ù?Ù?اÙ?ب اÙ?رÙ?اضÙ?Ø©", <http://ift.tt/18HFz3V;; rel="item"; title="387 Ù?اعب Ù?Ù?اعبة ضÙ?Ù? ÙعاÙ?Ù?ات اÙ?تدرÙ?ب اÙ?Ù?ستÙ?ر Ù?اÙ?تشا٠اÙ?Ù?Ù?اÙ?ب اÙ?رÙ?اضÙ?Ø©", <http://ift.tt/1AzskrB;; rel="item"; title="اÙ?جÙ?در Ù?ؤÙ?د استÙ?رار "اÙ?شباب Ù?اÙ?رÙ?اضة" ÙÙ? دعÙ? Ù?سÙ?رة اÙ?Ù?راÙ?ز اÙ?شبابÙ?Ø©", <http://ift.tt/18HFz3X;; rel="item"; title="اÙ?جÙ?در Ù?Ø´Ù?د بدÙ?ر اÙ?Ù?راÙ?ز اÙ?شبابÙ?Ø© ÙÙ? تطبÙ?Ù? رؤÙ?Ø© Ù?اصر بÙ? ØÙ?د ÙÙ? اØتضاÙ? اÙ?شباب", <http://ift.tt/1AzskrD;; rel="item"; title="اÙ?جÙ?در: Ù?دÙÙ?ا تØÙ?Ù?Ù? Ø£ÙضÙ? Ùرص استثÙ?ارÙ?Ø© Ù?Ù?Ø£Ù?دÙ?Ø© اÙ?Ù?Ø·Ù?Ù?Ø© Ù?Ù?بارÙ? اÙ?Ù?شرÙ?ع اÙ?جدÙ?د", <http://ift.tt/18HFz3Z;; rel="item"; title="اÙ?جÙ?در Ù?Ø´Ù?د بدÙ?ر اÙ?Ù?راÙ?ز اÙ?شبابÙ?Ø© ÙÙ? تطبÙ?Ù? رؤÙ?Ø© Ù?اصر بÙ? ØÙ?د ÙÙ? اØتضاÙ? اÙ?شباب"
Server ? Apache
Transfer-Encoding ? chunked
X-Content-Type-Options ? nosniff
X-Pingback ? http://ift.tt/1AzskrF
X-Powered-By ? PHP/5.4.24
X-WP-Total ? 6
X-WP-TotalPages ? 1
[net_WebHeaderInvalidControlChars]
Arguments:
Debugging resource strings are unavailable. Often the key and arguments provide sufficient information to diagnose the problem. See http://ift.tt/1hDWvtY
Parameter name: name”
Returned JSON:
http://ift.tt/18HFA7V
Connection ? Keep-Alive
Content-Type ? application/json; charset=UTF-8
Date ? Fri, 27 Feb 2015 03:35:43 GMT
Keep-Alive ? timeout=1, max=100
Last-Modified ? Thu, 26 Feb 2015 14:43:55 GMT
Link ? <http://ift.tt/1AzsiA0;; rel="item"; title="387 Ù?اعب Ù?Ù?اعبة ضÙ?Ù? ÙعاÙ?Ù?ات اÙ?تدرÙ?ب اÙ?Ù?ستÙ?ر Ù?اÙ?تشا٠اÙ?Ù?Ù?اÙ?ب اÙ?رÙ?اضÙ?Ø©", <http://ift.tt/18HFz3V;; rel="item"; title="387 Ù?اعب Ù?Ù?اعبة ضÙ?Ù? ÙعاÙ?Ù?ات اÙ?تدرÙ?ب اÙ?Ù?ستÙ?ر Ù?اÙ?تشا٠اÙ?Ù?Ù?اÙ?ب اÙ?رÙ?اضÙ?Ø©", <http://ift.tt/1AzskrB;; rel="item"; title="اÙ?جÙ?در Ù?ؤÙ?د استÙ?رار "اÙ?شباب Ù?اÙ?رÙ?اضة" ÙÙ? دعÙ? Ù?سÙ?رة اÙ?Ù?راÙ?ز اÙ?شبابÙ?Ø©", <http://ift.tt/18HFz3X;; rel="item"; title="اÙ?جÙ?در Ù?Ø´Ù?د بدÙ?ر اÙ?Ù?راÙ?ز اÙ?شبابÙ?Ø© ÙÙ? تطبÙ?Ù? رؤÙ?Ø© Ù?اصر بÙ? ØÙ?د ÙÙ? اØتضاÙ? اÙ?شباب", <http://ift.tt/1AzskrD;; rel="item"; title="اÙ?جÙ?در: Ù?دÙÙ?ا تØÙ?Ù?Ù? Ø£ÙضÙ? Ùرص استثÙ?ارÙ?Ø© Ù?Ù?Ø£Ù?دÙ?Ø© اÙ?Ù?Ø·Ù?Ù?Ø© Ù?Ù?بارÙ? اÙ?Ù?شرÙ?ع اÙ?جدÙ?د", <http://ift.tt/18HFz3Z;; rel="item"; title="اÙ?جÙ?در Ù?Ø´Ù?د بدÙ?ر اÙ?Ù?راÙ?ز اÙ?شبابÙ?Ø© ÙÙ? تطبÙ?Ù? رؤÙ?Ø© Ù?اصر بÙ? ØÙ?د ÙÙ? اØتضاÙ? اÙ?شباب"
Server ? Apache
Transfer-Encoding ? chunked
X-Content-Type-Options ? nosniff
X-Pingback ? http://ift.tt/1AzskrF
X-Powered-By ? PHP/5.4.24
X-WP-Total ? 6
X-WP-TotalPages ? 1
I had this exception trying to make a request with greek letters. The problem was that the server did not returned a valid header. Fixed by adding NativeHost as the useragent
ReplyDelete