を使用して GET リクエストからの最後の応答を出力したいのですGrinder
が、コードは次のとおりです。
response_string = httpUtilities.getLastResponse().getText()
print str(response_string)
私は例外を得ました:
'ascii' codec can't encode character u'\ufffd' in position
1: ordinal not in range(128) at this line :
print str(response_string)
私の質問は、変換する方法java.lang.String
です。
私はhttpUtilities.getLastResponse().getText()
python文字列から取得しましたか?レスポンスは
charset='utf-8'