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 self.credentials = data
# Set credentials to file # Set credentials to file
with open(os.path.join(self.path, 'data.txt'), 'w') as outfile: with open(os.path.join(self.path, 'data.txt'), 'w') as outfile:
for server in data['Servers']: json.dump(data, outfile, ensure_ascii=True)
server['Name'] = server['Name'].encode('utf-8')
json.dump(data, outfile, ensure_ascii=False)
else: else:
self._clear() self._clear()