I want to print the last response from my GET request using Grinder
, here is my code:
response_string = httpUtilities.getLastResponse().getText()
print str(response_string)
I got exception:
'ascii' codec can't encode character u'\ufffd' in position
1: ordinal not in range(128) at this line :
print str(response_string)
My question is how to convert java.lang.String
.
I got from httpUtilities.getLastResponse().getText()
into python string?
Response has
charset='utf-8'