2 require_once(
'./Modules/Bibliographic/interfaces/interface.ilBibliograficFileReader.php');
49 if (!function_exists(
'mb_detect_encoding') || !function_exists(
'mb_detect_order')
50 || !function_exists(
"mb_convert_encoding")
55 $mb_detect_encoding = mb_detect_encoding($string);
56 mb_detect_order(
array( self::ENCODING_UTF_8, self::ENCODING_ISO_8859_1 ));
57 switch ($mb_detect_encoding) {
58 case self::ENCODING_UTF_8:
60 case self::ENCODING_ASCII:
61 $string = utf8_encode(iconv(self::ENCODING_ASCII,
'UTF-8//IGNORE', $string));
64 $string = mb_convert_encoding($string, self::ENCODING_UTF_8, $mb_detect_encoding);
const ENCODING_ISO_8859_1
setFileContent($file_content)
readContent($path_to_file)
setPathToFile($path_to_file)
Create styles array
The data for the language used.
Interface ilBibliograficFileReader.
Class ilBibliograficFileReaderBase.
convertStringToUTF8($string)