This article mainly introduces the solution to decoding garbled text after PHPbase64 encoding. The cause of garbled text is that base64 encoding contains some special characters, so you can simply replace it with it, A friend who needs it can refer to a problem found when using PHP to do things. it can be simply attributed to a garbled problem, but this problem is not caused by the function itself. To see who is the culprit.
Suspect: base64_encode and base64_decode
Crime: I wrote a jump and prompt function. after receiving the prompt, I jumped to the specified page, but the Chinese characters are garbled during the jump prompt.
The jump template code is as follows:
The code is as follows:
Jump prompt
<? Php if ($ _ GET ['success']) {?>
:) Congratulations!
<? Php echo base64_decode ($ _ GET ['message']);?>
<? Php} else {?>
:( Error!
<? Php echo base64_decode ($ _ GET ['message']);?>
<? Php }?>
The system will<? Php echo $ _ GET ['Time'];?>Jump back. you can click here to jump directly.