none
REST API should specify encoding in response headers RRS feed

  • General discussion

  • Wasn't 100% sure where to post this as I couldn't see a feedback channel other than this forum.

    I'm using the REST API in one of my applications and it's working well so far. One minor issue I've encountered is that while the Bing Maps API returns UTF-8 data, this is not specified in the response headers. Some libraries, such as Microsoft.Http.HttpClient originally included in the WCF REST Starter Kit, rely on this to tell whether to decode the response using UTF-8 or a different encoding (like ISO-8859-1). Ideally the API responses should have a "Content-Type: application/json; charset=utf-8" header so consuming applications know they're encoded using UTF-8.

    Thanks.


    Tuesday, August 14, 2012 5:46 AM

All replies

  • I can't help address the issue, but I just thought I'd tell you that you have reported it in the correct place, and you've written a great concise description of the problem, so thanks! :)

    twitter: @alastaira blog: http://alastaira.wordpress.com/

    Tuesday, August 14, 2012 7:19 AM
    Moderator
  • I believe I heard this once before from someone else. I'll check to see if it is on the feature request list and add it if it isn't

    http://rbrundritt.wordpress.com

    Friday, August 17, 2012 4:51 PM