From f28992ce908f65cbd55d378d297db884e1a73317 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Tue, 27 Mar 2018 12:33:56 +0200 Subject: [PATCH] Yet another fix for the encoding problems --- pyrogram/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyrogram/__init__.py b/pyrogram/__init__.py index 469dd399..f2075f8c 100644 --- a/pyrogram/__init__.py +++ b/pyrogram/__init__.py @@ -20,7 +20,7 @@ import sys __copyright__ = "Copyright (C) 2017-2018 Dan Tès ".replace( "\xe8", - "e" if sys.getfilesystemencoding() == "ascii" else "\xe8" + "e" if sys.getfilesystemencoding() != "utf-8" else "\xe8" ) __license__ = "GNU Lesser General Public License v3 or later (LGPLv3+)" __version__ = "0.6.4"