Azure / Azure/azure-cli

not possible to clone tasks with special characters like german umlaut (encoding problem)

Open
#16,978 2 comments 0 reactions 0 assignees View on GitHub
act-platform-engineering-squad DevOps Service Attention
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

if I have tasks with german umlaut in field description and I read this task with az cli, I got wrong encoded characters. If I try to use these characters to create a new task, the content of the new task is also wrong

**Steps to reproduce**
1. create a work item in azure devops and add in the description field the following content "öäü"
2. save the work item and remember the id the new work item got
3. use az cli to read the work item
`$xx=(az boards work-item show --id --org )`
4. convert the json output into powershell object with `$xx=$xx | ConvertFrom-Json`
5. look into the field `$xx.fields.'System.Description'`
6. you should now got the following: `

õ÷³
`

**Expected behavior**
`

öäu
`

**Environment summary**
Windows 10 client
az--version:
azure-cli 2.19.1
core 2.19.1
telemetry 1.0.6
Extensions:
azure-devops 0.18.0
Python location 'C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\python.exe'
Extensions directory 'C:\Users\pern\.azure\cliextensions'
Python (Windows) 3.6.8 (tags/v3.6.8:3c6b436a57, Dec 23 2018, 23:31:17) [MSC v.1916 32 bit (Intel)]
Legal docs and information: aka.ms/AzureCliLegal
Your CLI is up-to-date.

Powershell version: 5.1.18362.1171

**Additional context**
if you run the command with `--debug`, you see that there is an encoding like `

\xc3\xa4\xc3\xb6\xc3\xbc
`, but it's not possible to change

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.