depending on how i clear a file in powershell, i get garbage.
echo "" > ".\file.txt"
OR
clear-content ".\file.txt"
THEN
[io.file]::AppendAllText("file.txt", "teststring")
Using clear-content, I will get "teststring" in my "file.txt".
Using echo "" > ".\file.txt", I get garbage chinese characters.
WHY? does echo "" > file mess with encoding?