13 years ago
REST request entity is not encoded according to Media Type
soapUI version: 4.5.0
OS: OS X Lion 10.74
Java: Oracle JDK 1.6.0_31
I was having problems with my REST POST requests containing non ASCII characters (e.g. Norwegian æøå).
When monitoring the request i see that even though soapUI sends a Content-Type header based on my Media Type setting ("application/json;charset=UTF-8"), the actual request entity has not been UTF-8 encoded.
Recreate:
Christian
OS: OS X Lion 10.74
Java: Oracle JDK 1.6.0_31
I was having problems with my REST POST requests containing non ASCII characters (e.g. Norwegian æøå).
When monitoring the request i see that even though soapUI sends a Content-Type header based on my Media Type setting ("application/json;charset=UTF-8"), the actual request entity has not been UTF-8 encoded.
Recreate:
- Use a OS with a non-UTF default charset.
- Create a REST POST request with a body containing non-ascii characters.
- Configure a media type with a UTF-8 charset parameter
- Verify server-side, or by monitoring request that the request entity has not been correctly encoded.
Christian