wenhao001 / rest-assured

Automatically exported from code.google.com/p/rest-assured
0 stars 0 forks source link

Response prettyPrint() escape UTF-8 #401

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Send request, which returns some UTF-8 characters like 
"ŘÍŠŽŤČÝŮŇÚĚĎÁÉÓ", which contains all special Czech characters
2. Print response using com.jayway.restassured.response.ResponseBody#print
3. Print response using com.jayway.restassured.response.ResponseBody#prettyPrint
4. Compare responses

What is the expected output? What do you see instead?

Expected output is "ŘÍŠŽŤČÝŮŇÚĚĎÁÉÓ", but I got in prettyPrint() 
"\u0158\u00cd\u0160\u017d\u0164\u010c\u00dd\u016e\u0147\u00da\u011a\u010e\u00c1\
u00c9\u00d3"
Content-Type=application/json; charset=UTF-8

What version of the product are you using? On what operating system?

rest-assured 2.4.0

Please provide any additional information below.

Original issue reported on code.google.com by libor.on...@gmail.com on 15 May 2015 at 8:45