From 4f83fb1abc8fe4d8803414d98cf7754577249964 Mon Sep 17 00:00:00 2001 From: Georgi Gerganov Date: Mon, 13 May 2024 15:33:46 +0300 Subject: [PATCH] server : return utf-8 (#2138) --- examples/server/server.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/server/server.cpp b/examples/server/server.cpp index a98e156c26b..e3b96698228 100644 --- a/examples/server/server.cpp +++ b/examples/server/server.cpp @@ -831,7 +831,7 @@ int main(int argc, char ** argv) { if (params.response_format == text_format) { std::string results = output_str(ctx, params, pcmf32s); - res.set_content(results.c_str(), "text/html"); + res.set_content(results.c_str(), "text/html; charset=utf-8"); } else if (params.response_format == srt_format) {