+
95
-

php的base64编码后用JS解码中文乱码怎么办?

php的base64编码后用JS解码中文乱码怎么办?

<script>
alert(atob("<?=base64_encode("你好")?>"))
</script>


网友回复

+
15
-
<?php
$chinese_str = "你好hello";

$encoded = base64_encode($chinese_str);

?>
<script>
    let str = "<?=$enc...

点击查看剩余70%

我知道答案,我要回答