--- google_cse.module_orig	2008-06-21 19:22:57.000000000 +0300
+++ google_cse.module	2008-06-21 19:06:23.000000000 +0300
@@ -46,6 +46,13 @@
     '#default_value' => variable_get('google_cse_cx', ''),
     '#description' => t('Enter your <a target="_blank" href="http://www.google.com/coop/cse">Google Co-op Custom Search Engine ID</a>.'),
   );
+  $form['google_cse_ie'] = array(
+    '#title' => t('Results Encoding'),
+    '#type' => 'textfield',
+    '#default_value' => variable_get('google_cse_ie', 'UTF-8'),
+    '#description' => t('Results encoding (default utf-8)'),
+  );
+
   $form['google_cse_results_display'] = array(
     '#title' => t('Display search results'),
     '#type' => 'radios',
@@ -152,6 +159,10 @@
     $cof = 'FORID:0';
   }
   $form['#method'] = 'get';
+  $form['ie'] = array(
+    '#type' => 'hidden',
+    '#value' => variable_get('google_cse_ie', 'UTF-8'),
+  );
   $form['cx'] = array(
     '#type' => 'hidden',
     '#value' => variable_get('google_cse_cx', ''),
@@ -219,6 +230,7 @@
   $query = array(
     'q' => $_GET['query'],
     'cx' => variable_get('google_cse_cx', ''),
+    'ie' => variable_get('google_cse_ie', ''),
     'cof' => 'FORID:0',
   );
   $output = drupal_get_form('google_cse_results_searchbox_form');
