setCharacterSet
void session.setCharacterSet ( String characterSet )
Description
Set the general character set used in page response renderings. This can be particularly helpful when the pages render 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 invoked before the session starts.
If you are having trouble with characters displaying incorrectly, we encourage you to ready about how to go about finding a solution using one of our FAQs.
Examples
Set Character Set of All Scrapeable Files
// In script called "Before scraping session begins"
// Sets the character set to be applied to the last responses
// of all scrapeable files in session.
session.setCharacterSet( "ISO-8859-1" );
// Sets the character set to be applied to the last responses
// of all scrapeable files in session.
session.setCharacterSet( "ISO-8859-1" );
See Also
- getCharacterSet() [session] - Gets the character set used to render all responses.
- getCharacterSet() [scrapeableFile] - Get the character set used to responses to a specific scrapeable file.
- setCharacterSet() [scrapeableFile] - Set the character set used to responses to a specific scrapeable file.
scraper on 07/16/2010 at 5:13 pm
- Printer-friendly version
- Login or register to post comments