mirror of
https://github.com/Hopiu/djLint.git
synced 2026-03-27 10:40:23 +00:00
fix(windows): fixed windows output. colorama was converting to cp1252
This commit is contained in:
parent
f63cc4d8ea
commit
46395e28bc
1 changed files with 2 additions and 1 deletions
|
|
@ -228,7 +228,8 @@ def main(
|
|||
|
||||
if temp_file and (config.reformat or config.check):
|
||||
# if using stdin, only give back formatted code.
|
||||
echo(Path(temp_file.name).read_text(encoding="utf8").rstrip())
|
||||
echo(Path(temp_file.name).read_text(encoding="utf8").rstrip().encode('utf8'))
|
||||
|
||||
|
||||
if temp_file:
|
||||
temp_file.close()
|
||||
|
|
|
|||
Loading…
Reference in a new issue