diff --git a/de.dentrassi.osgi.web/src/de/dentrassi/osgi/web/util/Responses.java b/de.dentrassi.osgi.web/src/de/dentrassi/osgi/web/util/Responses.java index 5305a59b..5039a463 100644 --- a/de.dentrassi.osgi.web/src/de/dentrassi/osgi/web/util/Responses.java +++ b/de.dentrassi.osgi.web/src/de/dentrassi/osgi/web/util/Responses.java @@ -30,6 +30,9 @@ public static void methodNotAllowed ( final HttpServletRequest request, final Ht public static void notFound ( final HttpServletRequest request, final HttpServletResponse response ) throws IOException { + response.setCharacterEncoding ( "UTF-8" ); + response.setContentType ( "text/plain" ); + response.setStatus ( HttpServletResponse.SC_NOT_FOUND ); response.getWriter ().println ( String.format ( "Resource '%s' could not be found", Requests.getOriginalPath ( request ) ) ); }