Azure / Azure/azure-devops-cli-extension

No way to change the encoding of the output

Open
#983 4 comments 6 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
682
Forks
278
Avg merge
3d 23h
Merged PRs (30d)
3

Description

### **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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.