I haven't found a way to properly generate files with accentuated character when forced to use redirection in a powershell shell.
example, this: curl https://www.microsoft.com/fr-ca/ | out-file test.txt
will produce result like this in the file(the right result should be "productivité"
productivit├®
I tried many variations with the -encoding flag, like out-file test.txt -Encoding utf8BOM
, but they all gave bad results too
Using the CMD shell is not an option as I require to run in a powershell shell.
Any ideas how to do this properly?