Fix server name encoding

This commit is contained in:
angelblue05 2017-08-08 18:15:20 -05:00
parent d4ea2666fa
commit 7e38a743d7

View file

@ -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()