简体   繁体   中英

facebook api query string issue

I develop a facebook api with asp.net , I have to send query string but this querystring may include special characters like ( ı, ç ö, ş, ğ ). When I send query string with special characters, facebook returns me an error-

The URL http://apps.facebook.com/sportsfanarena/Results.aspx?s=13&co=3&ci=Bal%c4%b1kesir&g=0 is not valid.

The "ci" variable's value is "Balıkesir".

Is there any solution to handle it?

I believe you need to use URL encoding to send characters like that, though I may be mistaken.

Here is an online utility which will take text and encode/decode it in URL encoding.

Try encoding the word you are wanting to send using this utility, and then try your API request with the encoded text.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM