401 error when sending French or Polish characters to Data Collector API

Copper Contributor

Hello,

 

We have a solution that sends custom data to Log Analytics via the Data Collector API.

 

The challenge is that the moment we try to send data that contains a national character like (French or Polish), so anything outside of standard ASCII range, we get 401 error. It looks like authorization error, but the moment we remove problematic national character from the data, it works perfectly.

 

Is there anything we can do about this, apart from encoding special characters in ASCII chars only?

 

Kind regards

Tomasz

1 Reply

@Tomasz Luchowski 

 

I have the exact same problem.

 

Espana -> added to logs just fine
España -> doesn't work
 
Response:
 
HTTP/1.1 403 Forbidden
...
{"Error":"InvalidAuthorization","Message":"An invalid signature was specified in the Authorization header"}
 
Default application/json encoding is UTF-8 so I expect this to work.
 
Specifying the content-type of the request as Content-Type: application/json; charset=utf-8, instead of just application/json does not fix the issue either (to be clear: it should not, since it should work already!).
 
Any solution to this would be greatly appreciated.
 
Kind regards,
 
Gert