From 0ecf3d08be9206b1067fa37301fb187256dc17ab Mon Sep 17 00:00:00 2001 From: James Taylor Date: Mon, 25 Mar 2019 13:15:54 -0700 Subject: Fix error with channel searches with non-ascii characters --- youtube/proto.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube/proto.py b/youtube/proto.py index 004375a..d966455 100644 --- a/youtube/proto.py +++ b/youtube/proto.py @@ -60,7 +60,7 @@ def unpadded_b64encode(data): def as_bytes(value): if isinstance(value, str): - return value.encode('ascii') + return value.encode('utf-8') return value -- cgit v1.2.3