34 $filesystem = $DIC[
"filesystem"];
48 if (!function_exists(
'mb_detect_encoding') || !function_exists(
'mb_detect_order')
49 || !function_exists(
"mb_convert_encoding")
54 $mb_detect_encoding = mb_detect_encoding($string);
55 mb_detect_order(
array( self::ENCODING_UTF_8, self::ENCODING_ISO_8859_1 ));
56 switch ($mb_detect_encoding) {
57 case self::ENCODING_UTF_8:
59 case self::ENCODING_ASCII:
60 $string = utf8_encode(iconv(self::ENCODING_ASCII,
'UTF-8//IGNORE', $string));
63 $string = mb_convert_encoding($string, self::ENCODING_UTF_8, $mb_detect_encoding);
const ENCODING_ISO_8859_1
readContent($path_to_file)
setFileContent($file_content)
setPathToFile($path_to_file)
Create styles array
The data for the language used.
Interface ilBibliograficFileReader.
Class ilBibliograficFileReaderBase.
convertStringToUTF8($string)