2require_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) {
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);
An exception for terminatinating execution or to throw for unit testing.
Class ilBibliograficFileReaderBase.
setFileContent($file_content)
convertStringToUTF8($string)
setPathToFile($path_to_file)
readContent($path_to_file)
const ENCODING_ISO_8859_1
Interface ilBibliograficFileReader.