From 4e95fd64dfade2781e4af6c5b54f52507a0f21b6 Mon Sep 17 00:00:00 2001 From: wanaryytel Date: Fri, 6 Oct 2017 12:17:26 +0300 Subject: [PATCH] Added unicode support to keys --- src/memcached_stats.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/memcached_stats.py b/src/memcached_stats.py index 1435a6f..989afd2 100644 --- a/src/memcached_stats.py +++ b/src/memcached_stats.py @@ -19,8 +19,8 @@ def client(self): def command(self, cmd): ' Write a command to telnet and return the response ' - self.client.write(("%s\n" % cmd).encode('ascii')) - return self.client.read_until(b'END').decode('ascii') + self.client.write(("%s\n" % cmd).encode('utf-8')) + return self.client.read_until(b'END').decode('utf-8') def key_details(self, sort=True, limit=100): ' Return a list of tuples containing keys and details '