File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -186,14 +186,14 @@ def processText(self,text):
186
186
text = text .replace ('quil' , 'qil' ) #Sometimes this string make everything buggy with IBMTTS in French
187
187
if self ._backquoteVoiceTags :
188
188
text = text .replace ('`' , ' ' ) #no embedded commands
189
+ text = text .encode ('mbcs' , 'replace' )
189
190
text = resub (anticrash_res , text )
190
191
#this converts to ansi for anticrash. If this breaks with foreign langs, we can remove it.
191
- text = text .encode ('mbcs' , 'replace' )
192
192
else :
193
193
#this converts to ansi for anticrash. If this breaks with foreign langs, we can remove it.
194
194
text = text .encode ('mbcs' , 'replace' )
195
- text = resub (anticrash_res , text )
196
195
text = text .replace (b'`' , b' ' ) #no embedded commands
196
+ text = resub (anticrash_res , text )
197
197
text = pause_re .sub (br'\1 `p1\2\3' , text )
198
198
text = time_re .sub (br'\1:\2 \3' , text )
199
199
return text
You can’t perform that action at this time.
0 commit comments