azure-devops-cli-extension
azure-devops-cli-extension copied to clipboard
No way to change the encoding of the output
This is autogenerated. Please review and update as needed.
Describe the bug
Somewhere between Azure CLI 2.1.0 and 2.3.0 a new warning message started showing up when executing some commands in the azure-devops extension: Unable to encode the output with cp1252 encoding. Unsupported characters are discarded.
This makes sense, there's probably a special character in one of the names that doesn't work in the cp12152 encoding. But there's no way to specify a different encoding to use (like UTF-8) that would allow me to get the full information in the output without discarding characters.
Command Name
az repos list Extension Name: azure-devops. Version: 0.17.0.
Errors:
To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.
- Put any pre-requisite steps here...
az repos list --organization {} --project {} --query {} --output {}
Expected Behavior
The behavior I'd like to see is my being able to add another parameter to the command line (like --encoding utf-8) that will change the encoding of the output so the warning message does not get displayed and the output does not have any discarded characters.
Environment Summary
Windows-10-10.0.19041-SP0
Python 3.6.6
Installer: MSI
azure-cli 2.3.0 *
Extensions:
azure-devops 0.17.0
Additional Context
having the same experience on my azure devops hosts, did you find any solution yet.
No solution to avoid the error completely. Only a trick to avoid having the error message mess with the console color.
This would be very handy to have. I saw a similar issue #581 were encoding was added. I have the warning when I'm exporting all the users of Azure DevOps.