Garbled characters in Jmeter response

Article directory

Problem Description

When Jmeter accesses the interface, if there is Chinese in the response content, garbled characters may be displayed

The response page is not encoded, and JMeter parses it according to the ISO-8859-1 encoding format by default.
insert image description here

Solution

Add a BeanShell PostProcessor post processor to the thread group

prev.setDataEncoding("utf-8")

insert image description here
insert image description here

Guess you like

Origin blog.csdn.net/weixin_44406011/article/details/132146477