Character code conversion

Document ID : KB000045295
Last Modified Date : 14/02/2018
Show Technical Document Details

Summary:

We want to do the character conversion API Gateway. 

for example 

source data : UTF-8 

target data : SJIS

 

Instructions:

It can by Encode/Decode Data assertion. 

do the following step. 

01. URL Encodeding source data to SJIS 

02. URL Decodeing '01' to SJIS 

03. output '02'.

 

Also, It can by the following assertions.

  .  SetContextValiable assertion.

  . Return Template Response to Requestor assertion.

In case of assertions:

Set Content-Type to Suitable charset.

for example:  

text/xml; charset=sjis, text/html; charset=sjis, text/plain; charset=sjis... etc...