Take the 2-minute tour ×
Stack Apps is a question and answer site for apps, scripts, and development with the Stack Exchange API. It's 100% free, no registration required.

I noticed display names in the JSON contain HTML character entities; e.g. /2.0/users/718618?order=desc&sort=reputation&site=stackoverflow

Gives me:

{
  "items": [
    {
      "user_id": 718618,
      "user_type": "registered",
      "creation_date": 1303376809,
      "display_name": "Cédric Julien",
...

I can HtmlDecode the display names I'm getting from the API. Would it be better if the API just returned the UTF8 character?

Relevant SO question: JSON character encoding

share|improve this question

1 Answer 1

up vote 1 down vote accepted

The default filter is unsafe=false, so the strings are coming back escaped. If I create a filter with unsafe=true the names come thru without the escaping.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .