public static function iconv_fallback_utf16le_utf8($string) {
		if (substr($string, 0, 2) == "\xFF\xFE") {
			// strip BOM
			$string = substr($string, 2);
		}
		$newcharstring = '';
		for ($i = 0; $i < strlen($string); $i += 2) {
			$charval = self::LittleEndian2Int(substr($string, $i, 2));
			$newcharstring .= self::iconv_fallback_int_utf8($charval);
		}
		return $newcharstring;
	}
public static function iconv_fallback_utf16le_utf8($string) {
		if (substr($string, 0, 2) == "\xFF\xFE") {
			// strip BOM
			$string = substr($string, 2);
		}
		$newcharstring = '';
		for ($i = 0; $i < strlen($string); $i += 2) {
			$charval = self::LittleEndian2Int(substr($string, $i, 2));
			$newcharstring .= self::iconv_fallback_int_utf8($charval);
		}
		return $newcharstring;
	}
public static function iconv_fallback_utf16le_utf8 ( $ string ) { if ( substr ( $ string , 0 , 2 ) == "\xFF\xFE" ) { // strip BOM $ string = substr ( $ string , 2 ) ; } $ newcharstring = '' ; for ( $ i = 0 ; $ i < strlen ( $ string ) ; $ i += 2 ) { $ charval = self :: LittleEndian2Int ( substr ( $ string , $ i , 2 ) ) ; $ newcharstring .= self :: iconv_fallback_int_utf8 ( $ charval ) ; } return $ newcharstring ; }
UTF-16LE => UTF-8
UTF - 16LE = > UTF - 8