getCharacterSet

String session.getCharacterSet ( )

Description

Get the general character set being used in page response renderings.

Parameters

This method does not receive any parameters.

Return Values

Returns the character set applied to the scraping session's files, as a string. If a character set has not been specified then it will default to the character set specified in settings dialog box.

Change Log

Version Description
4.5 Available for all editions.

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

Get Character Set

 // Get the character set of the dataSet
 charSetValue = session.getCharacterSet();

See Also

  • setCharacterSet() [session] - Set 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.