0
votes

I'm using Jmeter 5.3 on Windows 10. I'm facing with the following problem: I set the HTTP request to content encoding: UTF-8. In the response I saw it as I wanted.

"name": "Győr, autóbusz-állomás",

I tried to extract the response with JSON Extractor, but my assertion is failed and in the debug sampler the extracted name look like:

origin.name=Gy�r, aut�busz-�llom�s

How could I extract the variable in UTF-8 to use it in my assertion?

Thank you in advice,

1
It looks as if something is trying to treat your input as ANSI or Latin-1 rather than a UTF-8 btye stream. Probably whaterver reads it first.Dragonthoughts

1 Answers

0
votes

I cannot reproduce your issue:

enter image description here

Double check file.encoding System property value using the Debug Sampler, you should have UTF-8

enter image description here

If you don't - try launching JMeter as:

jmeter -Dfile.encoding=UTF-8

if it helps - add file.encoding=UTF-8 line to system.properties file (lives in "bin" folder of your JMeter installation, JMeter restart will be required to pick the property up.

More information: