Skip to content

Commit 645cf7a

Browse files
authored
Add UTF-8 encoding to output file handling (simonw#36)
1 parent bc05005 commit 645cf7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

files_to_prompt/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ def cli(
210210
writer = click.echo
211211
fp = None
212212
if output_file:
213-
fp = open(output_file, "w")
213+
fp = open(output_file, "w", encoding='utf-8')
214214
writer = lambda s: print(s, file=fp)
215215
for path in paths:
216216
if not os.path.exists(path):

0 commit comments

Comments
 (0)