summaryrefslogtreecommitdiff
path: root/includes/common.inc
diff options
context:
space:
mode:
Diffstat (limited to 'includes/common.inc')
-rw-r--r--includes/common.inc4
1 files changed, 3 insertions, 1 deletions
diff --git a/includes/common.inc b/includes/common.inc
index 1c7aa0a7c..93724afd6 100644
--- a/includes/common.inc
+++ b/includes/common.inc
@@ -1831,7 +1831,7 @@ function drupal_implode_autocomplete($array) {
function _drupal_bootstrap_full() {
static $called;
- global $locale;
+ global $locale, $multibyte;
if ($called) {
return;
@@ -1849,6 +1849,8 @@ function _drupal_bootstrap_full() {
set_error_handler('error_handler');
// Emit the correct charset HTTP header.
drupal_set_header('Content-Type: text/html; charset=utf-8');
+ // Detect string handling method
+ $multibyte = unicode_check();
// Initialize $_GET['q'] prior to loading modules and invoking hook_init().
if (!empty($_GET['q'])) {
$_GET['q'] = drupal_get_normal_path(trim($_GET['q'], '/'));