Skip to content

Commit

Permalink
Use UTF-8 encoding in Windows Terminal adapter
Browse files Browse the repository at this point in the history
  • Loading branch information
sylveon committed Jun 2, 2020
1 parent b6240ff commit 9a4fe5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pokemonterminal/terminal/adapters/windowsterminal.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class WindowsTerminalProvider(_TProv):

def set_background_image(path: str):
profiles_path = os.environ['LOCALAPPDATA'] + '\\Packages\\Microsoft.WindowsTerminal_8wekyb3d8bbwe\\LocalState\\settings.json'
with open(profiles_path, 'r+') as json_file:
with open(profiles_path, 'r+', encoding='utf8') as json_file:
# read profiles.json
# remove comments from json to load
data = json.loads(WindowsTerminalProvider.comment_remover(json_file.read()))
Expand Down

0 comments on commit 9a4fe5f

Please sign in to comment.