setCharacterSet

void scrapeableFile.setCharacterSet ( String characterSet ) (professional and enterprise editions only)

Description

Set the character set used in a specific scrapeable file's response renderings. This can be particularly helpful when the page renders characters incorrectly.

Parameters

  • characterSet Java recognized character set, as a string. Java provides a list of supported character sets in its documentation.

Return Values

Returns void.

Change Log

Version Description
4.5 Available for all editions.

This method must be called before the file is scraped.

If you are having trouble with characters displaying incorrectly, we encourage you to read about how to go about finding a solution using one of our FAQs.

Examples

Set Character Set of Scrapeable File

 // In script called "Before file is scraped"

 // Sets the character set to be applied to the last response.
 scrapeableFile.setCharacterSet( "ISO-8859-1" );

See Also

  • getCharacterSet() [scrapeableFile] - Gets the character set used to responses to a specific scrapeable file.
  • setCharacterSet() [session] - Set the character set used to render all responses.
  • getCharacterSet() [session] - Gets the character set used to render all responses.