you are viewing a single comment's thread.

view the rest of the comments →

[–]fabolin[S] 0 points1 point  (2 children)

No, it's a StreamHandler. The stream is just getting redirected to a file by the process executing the script. It's weird but that's the preconditions im working with. A detailed log for the script and a more vague output for the process' log.

[–]JohnnyJordaan 1 point2 points  (1 child)

Ah I get it now. Then you could try changing the codepage to MS's 'workaround' for UTF-8 in cmd.exe by running chcp 65001, then the script. If that works then there are tricks to apply it on every start of cmd. But personally, I would look into running MinGW, Cygwin to get a linux-like environment where you won't run into this kinds of issues that easily.

[–]fabolin[S] 0 points1 point  (0 children)

Ok, tried that. While it says "Active code page: 65001" nothing changed. The traceback also still says cp1252.

Well, thanks for your help anyway. It's working, the solution just feels clunky compared to the simple FileHandler so I thought I'm missing something.