getid3_lib::iconv_fallback_iso88591_utf8

Advertisement

Summery Summery

ISO-8859-1 => UTF-8

Syntax Syntax

getid3_lib::iconv_fallback_iso88591_utf8( string $string, bool $bom = false )

Parameters Parameters

$string

(Required)

$bom

(Optional)

Default value: false

Return Return

(string)

Source Source

File: wp-includes/ID3/getid3.lib.php

		}
		// utf8_encode() unavailable, use getID3()'s iconv_fallback() conversions (possibly PHP is compiled without XML support)
		$newcharstring = '';
		if ($bom) {
			$newcharstring .= "\xEF\xBB\xBF";
		}
		for ($i = 0; $i < strlen($string); $i++) {
			$charval = ord($string[$i]);
			$newcharstring .= self::iconv_fallback_int_utf8($charval);
		}
		return $newcharstring;
	}

	/**
	 * ISO-8859-1 => UTF-16BE

Advertisement

Advertisement

Leave a Reply