Reading Chinese from CSV has been garbled.
CSV Data set config file encoding is GB2312, the corresponding parameterized file encoding is also GB2312, but read out the variable value has been garbled, after the discovery is allow quoted Data property set error, Set this property to False to
XML code
- Allow quoted data should the CSV file allow values to be quoted
The meaning of the various properties of the CSV Data Set Config can be consulted: Http://jmeter.apache.org/usermanual/component_reference.html#CSV_Data_Set_Config
The following are the GB2312 encoding and UTF-8 encoding,the CSV Data Set Config, and the encoding configuration for the parameterized file
For GB2312 encoding
The CSV Data Set config is configured as follows
The parameterized file is encoded as (if it is a CSV file, you can open it with Notepad, and then set the encoding for the Save)
For UTF-8 encoding
The CSV Data Set config is configured as follows
The parameterized file is encoded as (if it is a CSV file, you can open it with Notepad, and then set the encoding for the Save)
Reference:
Http://jmeter.apache.org/usermanual/component_reference.html#CSV_Data_Set_Config
Ext: CSV Data Set Config Chinese garbled problem