ggerganov commited on
Commit
be06a9b
·
unverified ·
1 Parent(s): 04da8a6

unicode : fix character replacement (thanks to @tamo)

Browse files
Files changed (1) hide show
  1. examples/main/main.cpp +2 -2
examples/main/main.cpp CHANGED
@@ -390,9 +390,9 @@ bool output_wts(struct whisper_context * ctx, const char * fname, const char * f
390
  ncnt += txt.size();
391
  }
392
 
393
- ::replace_all(txt_bg, "'", "");
394
  ::replace_all(txt_bg, "\"", "\\\"");
395
- ::replace_all(txt_fg, "'", "");
396
  ::replace_all(txt_fg, "\"", "\\\"");
397
  }
398
 
 
390
  ncnt += txt.size();
391
  }
392
 
393
+ ::replace_all(txt_bg, "'", "\u2019");
394
  ::replace_all(txt_bg, "\"", "\\\"");
395
+ ::replace_all(txt_fg, "'", "\u2019");
396
  ::replace_all(txt_fg, "\"", "\\\"");
397
  }
398