soapui icon indicating copy to clipboard operation
soapui copied to clipboard

SoapUI 5.7.0 Wrong encoding when saving JSON response as file

Open MDagni opened this issue 4 years ago • 0 comments

A REST service returns values in JSON format with UTF-8 encoding. On the response tab's JSON view, I right click and choose Save as... I expect this to create a file with UTF-8 encoding, but instead it creates a UTF-8 encoded file with contents in ANSI character set.

It should write the file's contents in UTF-8 character set as determined by the response. This causes a problem because since the file's encoding and its contents mismatch, some editors cannot open the file properly.

This used to work fine in 5.6.0 version.

Here is the test api I'm using: http://postman-echo.com/get?myvalue=abc%C4%9E%C3%9C%C5%9E%C4%B0%C3%96%C3%87def

Raw response: 1-Response Save as: 2-Save as View in Notepadpp: 3-View in Notepadpp Encoding in Notepadpp: 4-Encoding in Notepadpp Other editor error: 5-Other editor error

MDagni avatar Jan 28 '22 11:01 MDagni