From 7e38a743d700c0dbeb75bc7c2efdd2bf5520284b Mon Sep 17 00:00:00 2001 From: angelblue05 Date: Tue, 8 Aug 2017 18:15:20 -0500 Subject: [PATCH] Fix server name encoding --- resources/lib/connect/credentials.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/resources/lib/connect/credentials.py b/resources/lib/connect/credentials.py index 41ac6b1e..c5ea3b81 100644 --- a/resources/lib/connect/credentials.py +++ b/resources/lib/connect/credentials.py @@ -57,9 +57,7 @@ class Credentials(object): self.credentials = data # Set credentials to file with open(os.path.join(self.path, 'data.txt'), 'w') as outfile: - for server in data['Servers']: - server['Name'] = server['Name'].encode('utf-8') - json.dump(data, outfile, ensure_ascii=False) + json.dump(data, outfile, ensure_ascii=True) else: self._clear()