錄製選項,高級,支持字符集,UTF-8。
一般情況下不需要開啓此選項,否則在Submit裏會出現有亂碼。
如果未開啓此功能還出現亂碼,可嘗試開啓此選項。
如果開啓此選項還是有亂碼,且亂碼處的內容你需要進行參數化,可使用lr_convert_string_encoding函數將字符轉化爲你需要的模式。
函數原型:
int lr_convert_string_encoding ( const char *sourceString, const char *fromEncoding, const char *toEncoding, const char *paramName);
sourceString | The string to convert |
fromEncoding | The encoding of the sourceString |
toEncoding | The encoding to convert of the string saved in parameter paramName |
paramName | The name of the parameter in which the destination string will be saved |
Constant Value
LR_ENC_SYSTEM_LOCALE | NULL |
LR_ENC_UTF8 | "utf-8" |
LR_ENC_UNICODE | "ucs-2" |
瀏覽器也有轉碼功能:菜單“查看”-->編碼-->Unicode(UTF-8)
爲什麼要啓用UTF-8,某些請求中會出現:
web_custom_request("CALL-H001I",
"EncType=text/xml; charset=UTF-8",
……);
這時候,此函數你就派得上用場了!
lr_convert_string_encoding函數的使用,直接查看幫助即可。
說明:
1. 在樹視圖裏的源碼(server Response)的亂碼是沒法解決的;
2. 在樹視圖的頁面顯示可以是正常,源碼視圖也可以顯示正常;
3. 雖然在server Response顯示亂碼,但查找中文字符串還是正常的