@@ -, +, @@ --- Koha/REST/V1.pm | 5 ++++- api/v1/script.cgi | 0 2 files changed, 4 insertions(+), 1 deletion(-) mode change 100644 => 100755 api/v1/script.cgi --- a/Koha/REST/V1.pm +++ a/Koha/REST/V1.pm @@ -68,6 +68,9 @@ sub startup { } ); + # Force charset=utf8 in Content-Type header for JSON responses + $self->types->type(json => 'application/json; charset=utf8'); + $self->plugin(Swagger2 => { route => $route, url => $self->home->rel_file("api/v1/swagger.json"), @@ -105,4 +108,4 @@ sub setKohaParamLogging { print __PACKAGE__."::startup():> No logfile given, defaulting to STDERR. Define your logfile and loglevel to the MOJO_LOGFILES and MOJO_LOGLEVEL environmental variables. If you want foreground logging, set the MOJO_LOGFILES as undef.\n"; } } -1; +1;