az rest fails with encoding error when sending UTF-8 emoji characters #30366
Labels
Auto-Assign
Auto assign by bot
Auto-Resolve
Auto resolve by bot
bug
This issue requires a change to an existing behavior in the product in order to be resolved.
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
Service Attention
This issue is responsible by Azure service team.
Describe the bug
When sending UTF-8 encoded text containing emoji characters (e.g.
β \u2705
orπ© \U0001f4a9
),az rest
fails with a character encoding error.Related command
az rest
Errors
Issue script & Debug output
Command:
az rest --method post --uri https://<servicebus url>/<topic name>/messages --body 'β ' --resource https://servicebus.azure.net
Debug output:
Expected behavior
The request is sent successfully.
Environment Summary
azure-cli 2.65.0 *
core 2.65.0 *
telemetry 1.1.0
Extensions:
azure-devops 0.25.0
containerapp 0.3.41
front-door 1.0.17
serviceconnector-passwordless 0.3.11
storage-preview 0.8.3
Dependencies:
msal 1.31.0
azure-mgmt-resource 23.1.1
Python location '/opt/az/bin/python3'
Extensions directory '/home/duncanblair/.azure/cliextensions'
Python (Linux) 3.11.8 (main, Sep 25 2024, 11:33:44) [GCC 11.4.0]
Legal docs and information: aka.ms/AzureCliLegal
Additional context
No response
The text was updated successfully, but these errors were encountered: