I use Katalon Studio v6.1.3, on Windows 10.
I made a Test Object for Web Service Request to
https://news.yahoo.co.jp/pickup/rss.xml. I tested it and got the following response. The response page displayed non-latin characaters garbled. I wanted to solve this.
Using Chromes DevTool, I confirmed that the response was in charset=UTF-8:
In Katalon Studio, Window > Katalon Studio Preference > General > Workspace, I found the following:
It seemed that Katalon Studio is recognizing file encoding of MS932 and UTF-8. Default is MS932, but in GUI UTF-8 is marked selected. — It is not clear which is actually selected by Katalon Studio.
However, the garbled characters in the display of Web Response certainly indicates that Katalon Studio on my PC uses MS932, not UTF-8.
C:\Users\myname\Katalon_Studio_Windows_64-6.1.3\katalon.ini so that it includes a line of
I restarted Katalon Studio and tried the same test. This time, no garbled characters found. Much improved.
Newer version of Katalon Studio should be delivered with the
katalon.ini file with a line of
In the Katalon Forum, a few posts reports garbled characters
- Api response Chinese display garbled
- My API response Chinese display garbled
- Can't set the Content-Type - #6 by kazurayam
-Dfile.encoding=utf-8 would eliminate repeating this sort of confusions in future.
@Monster suggested to use OS-level Environment Variable
JAVA_TOOL_OPTIONS to specify
Of course, his method also works.