From: moodler Date: Tue, 27 Apr 2004 13:57:46 +0000 (+0000) Subject: New developmental setting to force UTF for the whole server X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=cec0a0fc302d81f3fd8879ffa56bed32f8b692b0;p=moodle.git New developmental setting to force UTF for the whole server Plus, some optimisation on the way encoding is stored (in the session). --- diff --git a/config-dist.php b/config-dist.php index 1e9cf6e3d4..d0399ac317 100644 --- a/config-dist.php +++ b/config-dist.php @@ -148,6 +148,11 @@ $CFG->admin = 'admin'; // // Setting this to true will enable admins to edit any post at any time // $CFG->admineditalways = true; +// +// This setting will put Moodle in Unicode mode. It's very new and +// most likely doesn't work yet. THIS IS FOR DEVELOPERS ONLY, IT IS +// NOT RECOMMENDED FOR PRODUCTION SITES +// $CFG->unicode = true; diff --git a/lib/setup.php b/lib/setup.php index 774bc52d77..1513a9d085 100644 --- a/lib/setup.php +++ b/lib/setup.php @@ -219,6 +219,7 @@ if (isset($_GET['lang'])) { $SESSION->lang = $lang; + $SESSION->encoding = get_string('thischarset'); } if (empty($CFG->lang)) { $CFG->lang = "en"; diff --git a/lib/weblib.php b/lib/weblib.php index e67281b5b0..b0ced0c45a 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -375,7 +375,7 @@ function choose_from_menu ($options, $name, $selected="", $nothing="choose", $sc $output = "