Skip to content

Possible encoding issue with CLI and values containing special characters #283

Description

@catbusstop

Issue:
When retrieving a key-value with certain special characters using the CLI, the returned value looks ok until the value is held as a variable or ConvertFrom-Json is used, at which point, certain characters change. £ becomes ú and € becomes Ç, possibly indicating an encoding issue.

Steps to reproduce

  • Add a new key-value into AAC with a £ or € in either the name or the value (doesn't matter which, the issue occurs either way)
  • Use the CLI to return the key-value: az appconfig kv list --name 'appconfigname' --key 'Test:Settings:*' - powershell output looks correct
  • Use the CLI again, but this time, save the output to a variable: $x = az appconfig kv list --name 'appconfigname' --key 'Test:Settings:*'
  • Now output $x and you get different values
  • The same happens if you use ConvertFrom-Json: az appconfig kv list --name 'appconfigname' --key 'Test:Settings:*' | ConvertFrom-Json

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

cliIssues relating to the App Configuration Hubs CLI.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions