Skip to content

Commit c28a63b

Browse files
Update main.rs
change encode utf-8 in shell's output
1 parent 55b6ba1 commit c28a63b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -582,6 +582,7 @@ impl Executor {
582582
.hidden(false)
583583
.print_commands(false)
584584
.build();
585+
let _ = ps.run("[Console]::OutputEncoding = [System.Text.Encoding]::GetEncoding('utf-8')");
585586
let result = ps.run(self.pop_stack().get_string().as_str());
586587
match result {
587588
Ok(i) => self.stack.push(Type::String(

0 commit comments

Comments
 (0)