When trying to store an XML schema into an integration account using the az rest command and the management api, the schema fails to be uploaded if the schema contains latin special characters i.e. í or ä.
The same schema can be loaded into the integration account, by using the same management api and curl.
Command Nameaz rest --method PUT
Errors:
ValidationError: Bad Request({"error":{"code":"InvalidRequestContent","message":"The request content is not valid and could not be deserialized: 'Unable to translate bytes [E4] at index 538 from specified code page to Unicode.'."}})
To Reproduce:
Steps to reproduce the behavior.
create a file similar to the following (the inclusion of äddress is the text which causes the failure)
Describe the bug
When trying to store an XML schema into an integration account using the
az rest
command and the management api, the schema fails to be uploaded if the schema contains latin special characters i.e. í or ä.The same schema can be loaded into the integration account, by using the same management api and curl.
Command Name
az rest --method PUT
Errors:
ValidationError: Bad Request({"error":{"code":"InvalidRequestContent","message":"The request content is not valid and could not be deserialized: 'Unable to translate bytes [E4] at index 538 from specified code page to Unicode.'."}})
To Reproduce:
Steps to reproduce the behavior.
Expected Behavior
The schema is uploaded to the integration account
Environment Summary
Additional Context