mirror of https://gitlab.com/bashrc2/epicyon
Sconvert to ascii
parent
1f65c33f60
commit
31da9c98f5
|
@ -452,7 +452,8 @@ def _showLocalBox(notifyJson: {}, boxName: str,
|
||||||
while len(posStr) < 3:
|
while len(posStr) < 3:
|
||||||
posStr += ' '
|
posStr += ' '
|
||||||
if speakerJson.get('name'):
|
if speakerJson.get('name'):
|
||||||
name = speakerJson['name']
|
udata = speakerJson['name'].decode("utf-8")
|
||||||
|
name = udata.encode("ascii","ignore")
|
||||||
else:
|
else:
|
||||||
name = ''
|
name = ''
|
||||||
if len(name) > 16:
|
if len(name) > 16:
|
||||||
|
@ -460,7 +461,8 @@ def _showLocalBox(notifyJson: {}, boxName: str,
|
||||||
else:
|
else:
|
||||||
while len(name) < 16:
|
while len(name) < 16:
|
||||||
name += ' '
|
name += ' '
|
||||||
content = speakerJson['content']
|
udata = speakerJson['content'].decode("utf-8")
|
||||||
|
content = udata.encode("ascii","ignore")
|
||||||
if speakerJson.get('detectedLinks'):
|
if speakerJson.get('detectedLinks'):
|
||||||
if len(speakerJson['detectedLinks']) > 0:
|
if len(speakerJson['detectedLinks']) > 0:
|
||||||
content = '🔗' + content
|
content = '🔗' + content
|
||||||
|
|
Loading…
Reference in New Issue