Lr handwritten script, the solution to the Chinese garbled code of the returned information

1、Tools->Recording Options->Advanced->勾选Support charset UTF-8
2、Run-time Settings->Browser->Browser Emulation->Change,将language置为中文
3、web_add_auto_header("Accept-Language","zh-cn");
4、web_add_header("Content-Type","text/html;charset=UTF-8");
5、lr_convert_string_encoding(lr_eval_string("{rtn}"),LR_ENC_SYSTEM_LOCALE,LR_ENC_UTF8,"newRtn");
6、找default.cfg中,在[WEB]中添加UTF8InputOutput=1

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324883358&siteId=291194637