Uploaded image for project: 'Stanbol (Retired)'
  1. Stanbol (Retired)
  2. STANBOL-395

Encoding of enhancer json result

    XMLWordPrintableJSON

Details

    Description

      When accessing the enhancer results via the REST service the encoding is wrong.

      The problem is that PHP json_decode() expects UTF-8 and in prior versions of stanbol the json result was fine.
      Now it's not UTF-8 any more (although stated in the header).

      OK: http://dev.iks-project.eu:8080/engines/
      --> header: Content-Type: application/rdf+json; charset=UTF-8
      --> mb_detect_encoding() tells: UTF-8

      NOT OK: http://dev.iks-project.eu:8081/engines/
      --> header: Content-Type: application/rdf+json; charset=UTF-8
      --> mb_detect_encoding() tells: ASCII

      Other related problem:
      I also send the header "Accept: application/json" what should result in a JSON-LD response (like using the dropdown of the web interface) but I get back "application/rdf+json" (RDF/JSON)

      Attachments

        Issue Links

          Activity

            People

              fchrist Fabian Christ
              rene.kapusta Rene Kapusta
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: