server : return utf-8 (#2138)

This commit is contained in:
Georgi Gerganov 2024-05-13 15:33:46 +03:00
parent 3928dbd206
commit 4ef8d9f44e
No known key found for this signature in database
GPG Key ID: BF970631944C16B7

View 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)
{