]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commitdiff
server : return utf-8 (#2138)
authorGeorgi Gerganov <redacted>
Mon, 13 May 2024 12:33:46 +0000 (15:33 +0300)
committerGeorgi Gerganov <redacted>
Mon, 13 May 2024 12:33:46 +0000 (15:33 +0300)
examples/server/server.cpp

index a98e156c26b411a25b5a01e39754f79300bc4af9..e3b96698228b2402ad7e365afdff874c5e1f2938 100644 (file)
@@ -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)
         {