setUseServerCharacterSet
void session.setUseServerCharacterSet ( boolean useServerCharacterSet ) (professional and enterprise editions only)
Description
If this method is passed the value of true, it will cause screen-scraper to utilize whatever character set is specified by the server in its "Content-Type" response header. If no such header exists, screen-scraper will default to either the character set indicated for the scraping session or the global character set (in that order).
Parameters
- useServerCharacterSet true or false
Return Values
None
Change Log
Version | Description |
---|---|
5.5.11a | Available in all editions. |
Examples
Indicate that the server character set should be used
session.setUseServerCharacterSet( true );
// You can also access the current value like so:
session.log( "Use server character set: " + session.getUseServerCharacterSet() );
// You can also access the current value like so:
session.log( "Use server character set: " + session.getUseServerCharacterSet() );
todd on 03/08/2012 at 1:03 pm
- Printer-friendly version
- Login or register to post comments