/** *@desc Check and encode UTF-8 encoding document. Return the checked document converted to UTF-8 *@param string $document *@return string */ public static function fixUTF8($document) { return Encoding::fixUTF8(Encoding::removeBOM($document), Encoding::WITHOUT_ICONV); }
/** * @param $document * @return array|string */ public static function fixUTF8($document) { return Encoding::fixUTF8(Encoding::removeBOM($document), Encoding::ICONV_TRANSLIT); }