This script defines a class which can be used to query a Google Custom Search Engine. It sends HTTP requests to the Google CSE API and processes the response (search results and/or spelling suggestions) into properties of the object. The user of the class can also specify the character encoding that the search query is encoded in, with any results also being output in the same encoding.