Focus on UTF8

master
poing 2016-09-08 10:55:56 +09:00
parent 96fabab755
commit dab19ede42
1 changed files with 1 additions and 1 deletions

View File

@ -129,7 +129,7 @@ class AGI:
string = str(string) string = str(string)
if isinstance(string, float): if isinstance(string, float):
string = str(string) string = str(string)
return ''.join(['"', string.encode('ascii', 'ignore'), '"']) return ''.join(['"', string.encode('utf8', 'ignore'), '"'])
def _handle_sighup(self, signum, frame): def _handle_sighup(self, signum, frame):
"""Handle the SIGHUP signal""" """Handle the SIGHUP signal"""