SmartBear / soapui

SoapUI is a free and open source cross-platform functional testing solution for APIs and web services.
http://www.soapui.org
Other
1.56k stars 607 forks source link

SoapUI 5.7.0 Wrong encoding when saving JSON response as file #724

Open MDagni opened 2 years ago

MDagni commented 2 years ago

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