Special characters are garbled in API REST response
search cancel

Special characters are garbled in API REST response

book

Article ID: 144971

calendar_today

Updated On:

Products

CA Automic Workload Automation - Automation Engine

Issue/Introduction

Special characters (umlauts etc.) are garbled in API REST response


Using a Script (SCRI) or Job (JOBS) that contains special characters, may lead to strange character in the REST output.

For instance: Create and execute a script with following lines:

:PRINT "Hello Wörld. äü"

:PRINT "a_äàá_e_ëèé_i_ïìí_u_üùú_o_öòó_y_ý_euro_€_dollar_$_pound_£_cedille_ç"

 

The following API REST request:

http://server:port/ae/api/v1/22/objects/{object}
...results in garbled characters:

<...>

":PRINT \"Hello Wörld. äü\"",

":PRINT \"a_äà á_e_ëèé_i_ïìÃ\u00ad_u_üùú_o_öòó_y_ý_euro_¤_dollar_$_pound_£_cedille_ç\""

<...>

Or : http://server:port/ae/api/v1/22/executions/{runID}/reports/ACT
... results in erroneous carriage returns:

<...>

"page": 1,

            "content": "2019-06-14 16:05:35 - U00020408 Hello Wörld. äü\r\n2019-06-14 16:05:35 - U00020408 a_äàá_e_ëèé_i_ïìí_u_üùú_o_öòó_y_ý_euro_¤_dollar_$_pound_£_cedille_ç\r\n"

<...>

Environment

Release : v12.2 and v12.3

Component : REST API

Cause

This is a bug

Resolution

The issue has been fixed in:

Automation.Engine v12.2.5 - Available
Automation.Engine v12.3.2 - Available
Automation.Engine v12.4.0 - Planned release Sep-2020