How to set the encoding for a rest mock response
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2017
12:44 AM
11-27-2017
12:44 AM
How to set the encoding for a rest mock response
Hi, how can i set the encoding of a Rest Mock (JSON) response to UTF-8
Best regards
4 REPLIES 4
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2017
04:39 AM
11-27-2017
04:39 AM
What is your os?
What does it show (encoding ) from Menu -> Help -> System Properties?
Regards,
Rao.
What does it show (encoding ) from Menu -> Help -> System Properties?
Regards,
Rao.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2017
05:08 AM
11-27-2017
05:08 AM
Hi nmrao
OS is windows 7
file.encoding=Cp1252
regards
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2019
06:54 AM
07-18-2019
06:54 AM
I have the same problem..
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2019
02:11 AM
10-24-2019
02:11 AM
Add a new header to the response:
Content-Type: application/json; charset=utf-8
But SoapUI uses the encoding of the OS. So save your response with an Editor in UTF8.
Then open the response with an Editor by using your Codepage (cp1252 or iso-8859-1, i used VisualStudio [open with encoding]) and copy paste it to SoapUI.
Or
set the header to the Codepage used by SaopUI
Content-Type: application/json; charset=iso-8859-1
This helped me with umlauts. Without setting the Content-Type i get the error: Invalid character
