PHP解析marc数据文件,在vscode中打开乱码,输出到网页上乱码如何解决?
问题描述:
急求解答,PHP可以做解析marc数据吗?
<?php
header("Content-Type: text/html; charset=gb2312");
$myfile = fopen("test.ISO", "r") or die("Unable to open file!");
echo fread($myfile,filesize("test.ISO"));
fclose($myfile);