当我尝试读取文件时,我看到了这张图片。这是正常的吗?
我的代码
public function openTheFeedDocument() {
$data = json_decode($this->getFeedDocument());
$url = $data->payload->url;
$iv = base64_decode($data->payload->encryptionDetails->initializationVector);
$key = base64_decode($data->payload->encryptionDetails->key);
$decryptedData = openssl_decrypt(file_get_contents($url), 'AES-256-CBC', $key, OPENSSL_RAW_DATA, $iv);
$raw_document = mb_convert_encoding($decryptedData, 'UTF-8', 'ASCII, JIS, UTF-8, SJIS');
echo $raw_document;
}