德code的base64字符串 - PHP
问题描述:
有什么方法脱code这个字符串?
Is there any way to decode this string??
实际字符串:其他语言测试 - 测试
Actual string : 其他語言測試 - testing
的base64 EN code,而在邮件为主体的发送
base64 encode while sending on mail as subject as
=?ISO-2022-JP?B'GyRCQjZCPjhsOEBCLDtuGyhCIC0gdGVzdGluZw ==?=
"=?iso-2022-jp?B?GyRCQjZCPjhsOEBCLDtuGyhCIC0gdGVzdGluZw==?="
<?php
echo base64_decode('GyRCQjZCPjhsOEBCLDtuGyhCIC0gdGVzdGluZw==');
?>
这是基地64 EN code,我不能去code将其实际的中国string.Since它已经连接使用ISO-2022-JP$ C $的CD,我也试着在线base64de code.org现场去code这个字符串,但我找不到原始的字符串,我该怎么办呢?
This is base 64 encode, I couldn't decode it to actual Chinese string.Since it has been encoded using "iso-2022-jp", I have also tried online base64decode.org site to decode this string, but I couldn't find the original string, how can I do that?
答
使用 的iconv( )
:
<?php
$input = base64_decode('GyRCQjZCPjhsOEBCLDtuGyhCIC0gdGVzdGluZw==');//$BB6B>8l8@B,;n(B - testing
$input_encoding = 'iso-2022-jp';
echo iconv($input_encoding, 'UTF-8', $input); //其他語言測試 - testing
?>