From 4ef8d9f44eb402c528ab6d990ab50a9f4f666347 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 a98e156c..e3b96698 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) {