WordPress at Your Fingertips
function is not described

getid3_lib::iconv_fallback_utf16le_utf8() public WP 1.0

UTF-16LE => UTF-8

{} It's a method of the class: getid3_lib{}

No Hooks.

Return

String.

Usage

$result = getid3_lib::iconv_fallback_utf16le_utf8( $string );
$string(string) (required)
-

Code of getid3_lib::iconv_fallback_utf16le_utf8() WP 5.8.2

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;
}