public static function iconv_fallback_utf16be_iso88591($string) {
		if (substr($string, 0, 2) == "\xFE\xFF") {
			// strip BOM
			$string = substr($string, 2);
		}
		$newcharstring = '';
		for ($i = 0; $i < strlen($string); $i += 2) {
			$charval = self::BigEndian2Int(substr($string, $i, 2));
			$newcharstring .= (($charval < 256) ? chr($charval) : '?');
		}
		return $newcharstring;
	}
public static function iconv_fallback_utf16be_iso88591($string) {
		if (substr($string, 0, 2) == "\xFE\xFF") {
			// strip BOM
			$string = substr($string, 2);
		}
		$newcharstring = '';
		for ($i = 0; $i < strlen($string); $i += 2) {
			$charval = self::BigEndian2Int(substr($string, $i, 2));
			$newcharstring .= (($charval < 256) ? chr($charval) : '?');
		}
		return $newcharstring;
	}
public static function iconv_fallback_utf16be_iso88591 ( $ string ) { if ( substr ( $ string , 0 , 2 ) == "\xFE\xFF" ) { // strip BOM $ string = substr ( $ string , 2 ) ; } $ newcharstring = '' ; for ( $ i = 0 ; $ i < strlen ( $ string ) ; $ i += 2 ) { $ charval = self :: BigEndian2Int ( substr ( $ string , $ i , 2 ) ) ; $ newcharstring .= ( ( $ charval < 256 ) ? chr ( $ charval ) : '?' ) ; } return $ newcharstring ; }
UTF-16BE => ISO-8859-1
UTF - 16BE = > ISO - 8859 - 1