Spaces:
Running
Running
unicode : fix character replacement (thanks to @tamo)
Browse files- 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 |
|