示例#1
0
 static function toUTF8($filesystemElement, $test = true)
 {
     if ($test && ext_TextEncoding::isUtf8($filesystemElement)) {
         return $filesystemElement;
     }
     $enc = ext_TextEncoding::getEncoding();
     return ext_TextEncoding::changeCharset($enc, "UTF-8", $filesystemElement);
 }