Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
LAMP
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
- is related to
-
STANBOL-101 Better control of returned format
- Closed