Skip to content

Commit

Permalink
unicode : fix character replacement (thanks to @tamo)
Browse files Browse the repository at this point in the history
  • Loading branch information
ggerganov committed Nov 23, 2022
1 parent 3c38087 commit 4f77100
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/main/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -390,9 +390,9 @@ bool output_wts(struct whisper_context * ctx, const char * fname, const char * f
ncnt += txt.size();
}

::replace_all(txt_bg, "'", "");
::replace_all(txt_bg, "'", "\u2019");
::replace_all(txt_bg, "\"", "\\\"");
::replace_all(txt_fg, "'", "");
::replace_all(txt_fg, "'", "\u2019");
::replace_all(txt_fg, "\"", "\\\"");
}

Expand Down

0 comments on commit 4f77100

Please sign in to comment.