/home/desid573/public_html/ims2/system/core
NameSizeModeActions
compat/-0755rm
Benchmark.php40880644editdlrm
CodeIgniter.php161440644editdlrm
Common.php220260644editdlrm
Config.php93510644editdlrm
Controller.php30370644editdlrm
Exceptions.php73290644editdlrm
Hooks.php63260644editdlrm
index.html1310644editdlrm
Input.php238340644editdlrm
Lang.php55400644editdlrm
Loader.php371490644editdlrm
Log.php76440644editdlrm
Model.php25730644editdlrm
Output.php212990644editdlrm
Router.php132260644editdlrm
Security.php298600644editdlrm
URI.php152750644editdlrm
Utf8.php44890644editdlrm
Edit: /home/desid573/public_html/ims2/system/core/Utf8.php (4489B)
is_ascii($str) === FALSE) { if (MB_ENABLED) { $str = mb_convert_encoding($str, 'UTF-8', 'UTF-8'); } elseif (ICONV_ENABLED) { $str = @iconv('UTF-8', 'UTF-8//IGNORE', $str); } } return $str; } // -------------------------------------------------------------------- /** * Remove ASCII control characters * * Removes all ASCII control characters except horizontal tabs, * line feeds, and carriage returns, as all others can cause * problems in XML. * * @param string $str String to clean * @return string */ public function safe_ascii_for_xml($str) { return remove_invisible_characters($str, FALSE); } // -------------------------------------------------------------------- /** * Convert to UTF-8 * * Attempts to convert a string to UTF-8. * * @param string $str Input string * @param string $encoding Input encoding * @return string $str encoded in UTF-8 or FALSE on failure */ public function convert_to_utf8($str, $encoding) { if (MB_ENABLED) { return mb_convert_encoding($str, 'UTF-8', $encoding); } elseif (ICONV_ENABLED) { return @iconv($encoding, 'UTF-8', $str); } return FALSE; } // -------------------------------------------------------------------- /** * Is ASCII? * * Tests if a string is standard 7-bit ASCII or not. * * @param string $str String to check * @return bool */ public function is_ascii($str) { return (preg_match('/[^\x00-\x7F]/S', $str) === 0); } }