1
votes

I am recording web requests in non english language by using Jmeter proxy recorder.

In some cases Jmeter shows the encoding correctly and I see that utf-8 is written in "content-encoding" field in the HTTP request.

The problem is that in some cases Jmeter doesn't show the encoding correctly and the field "content-encoding" is empty or has the value "us-ascii".

in both cases the source code of the recorded page has meta charset of utf-8.

How do I make Jmeter always use utf-8 during recording?

Thank in advance,

Gadi

1

1 Answers

0
votes

As per HTTP Request sampler documentation:

Content encoding

Content encoding to be used (for POST, PUT, PATCH and FILE). This is the character encoding to be used, and is not related to the Content-Encoding HTTP header.

So the blank value is normal given you are recording HTTP GET requests.

If you want to override the Content encoding setting for all the HTTP Request samplers just add HTTP Request Defaults configuration element to your test plan and specify UTF-8 encoding there.