Record Web Pages with Foreign Languages
When working with Web or other Internet protocols, you can indicate the encoding of the Web page text for recording. The recorded site's language must match the operating system language. You cannot mix encodings in a single recording—for example, UTF-8 together with ISO-8859-1 or shift_jis.
In this topic:
To be recognized as a non-English Web page, the page must indicate the charset in the HTTP header or in the HTML meta tag. Otherwise, VuGen will not detect the EUC-JP encoding and the Web site will not be recorded properly. To instruct VuGen to record non-English requests as EUC-JP or UT-8, select Record > Recording Options > HTTP Properties > Advanced > support charset and select the appropriate option in the Recording Options dialog box, HTPP Properties: Advanced node. For user interface details, see HTTP Properties > Advanced Recording Options.
By selecting the EUC-JP or UTF-8 option in the Recording Options, you are forcing VuGen to record a Web page with the selected encoding, even when it uses different encoding. If, for example, a non-EUC encoded Web page is recorded as EUC-JP, the script will not replay properly.
You can manually add full support for recording and replaying of HTML pages encoded in EUC-JP using the web_sjis_to_euc_param function. This also allows VuGen to display Japanese EUC-encoded characters correctly in Vuser scripts.
When you use web_sjis_to_euc_param, VuGen shows the value of the parameter in the Execution Log using EUC-JP encoding. For example, when you replay the web_find function, VuGen displays the encoded values. These include string values that were converted into EUC by the web_sjis_to_euc_param function, or parameter substitution when enabled in the RuntimeSetting > Log > Extended Log.