multi-byte characters are garbled in response.

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


In API Gateway, multi-byte characters are garbled in response from backend. 

What is root cause?

Also, what is how to show multi-byte characters  properly?



API Gateway loads response header from back end server(Web server).

So API Gateway loads default charset of back end server(Web server).

If response charset of WebServer and charset of the target html page is different, multi-byte characters are garbled.




Set  suitable charset in Backend WEB server.

for example: 

case of sjis in Apache server.

01. create new folder(sjis) in htdocs 

02. create .htaccess file in the folder (htdocs/sjis)

03. add "AddCharset SJIS .html" to .htaccess

04. edit httpd.comf.

AllowOverride none -> AllowOverride all

05. restart Apache server.

Sjis multi-byte characters are shown in "response.mainpart".