TylerLeonhardt / vscode-pester-test-adapter

MIT License
33 stars 13 forks source link

Run vs. Debug doesn't handle unicode correctly #48

Open JustinGrote opened 3 years ago

JustinGrote commented 3 years ago

Debug:

image

Run: image

The glyph that didn't match is ✨ Probably just typical Powershell OutputEncoding issues.

JustinGrote commented 3 years ago

Adding [console]::OutputEncoding = [Text.Encoding]::UTF8 fixed it, maybe make this part of the invocation script?

TylerLeonhardt commented 3 years ago

@JustinGrote makes sense to me! Wanna submit a quick PR?

JustinGrote commented 3 years ago

I may not only because I noticed it happened in my local wt console too, so it may give a false impression of "OK" behavior that will fail in the real world. The weird thing is why debug didn't do it, does the integrated console set this output encoding?

TylerLeonhardt commented 3 years ago

It does. Though, it sets it to UTF8...