[svn r20446] FS#306 - The Conference tool: Improvements for better encoding management.

skala
Ivan Tcholakov 16 years ago
parent 4ea02e9b96
commit c76f09b171
  1. 6
      main/conference/api.php
  2. 4
      main/conference/checksession.php

@ -174,9 +174,9 @@ else if ($action == "service")
if (is_array($files)) foreach (array_keys($files) as $k)
{
// converting to UTF-8
$files[$k]['title'] = mb_convert_encoding(
strlen($files[$k]['title']) > 32 ?
substr($files[$k]['title'],0, 32)."..." :
$files[$k]['title'] = api_convert_encoding(
api_strlen($files[$k]['title']) > 32 ?
api_substr($files[$k]['title'],0, 32)."..." :
$files[$k]['title'],
'utf-8',api_get_setting('platform_charset'));
// removing '<', '>' and '_'

@ -36,7 +36,7 @@ printf('<dokeosobject>');
printf('<courseobject>');
foreach ($_SESSION['_course'] as $key => $val)
printf('<%s>%s</%s>',$key,utf8_encode($val),$key);
printf('<%s>%s</%s>',$key,api_utf8_encode($val),$key);
printf('</courseobject>');
printf('<userobject>');
@ -45,7 +45,7 @@ foreach ($_SESSION['_user'] as $key => $val)
{
if (( $key == "lastName" || $key == "firstName" ) && strlen($val) == 0)
$val = get_lang('Unknown');
printf('<%s>%s</%s>',$key,utf8_encode($val),$key);
printf('<%s>%s</%s>',$key,api_utf8_encode($val),$key);
}
printf('<sid>%s</sid>', session_id());

Loading…
Cancel
Save