From dab19ede42f28f1cd8a473075e088f2d6f19dc57 Mon Sep 17 00:00:00 2001 From: poing Date: Thu, 8 Sep 2016 10:55:56 +0900 Subject: [PATCH] Focus on UTF8 --- asterisk/agi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/asterisk/agi.py b/asterisk/agi.py index 74d45d7..f19e9a0 100755 --- a/asterisk/agi.py +++ b/asterisk/agi.py @@ -129,7 +129,7 @@ class AGI: string = str(string) if isinstance(string, float): string = str(string) - return ''.join(['"', string.encode('ascii', 'ignore'), '"']) + return ''.join(['"', string.encode('utf8', 'ignore'), '"']) def _handle_sighup(self, signum, frame): """Handle the SIGHUP signal"""