Joke Collection Website - Blessing messages - Base64 SMS decoding
Base64 SMS decoding
If the encoding used by the server pages at both ends is inconsistent, it will lead to garbled codes.
As you said, the content sent by another server is encoded by GBK. If the encoding used by your local PHP is not GBK, garbled code will appear.
2 solutions:
Change the page encoding to GBK (you can use the title ('content-type: text/html charset = GBK'); )
Convert the GBK encoding into the current page encoding (assuming that the current page is utf-8), you can use ICONV ('GBK',' UTF-8', $ content); Where $content is the string decoded by urldecode and base64.
- Previous article:Tianjin skilled personnel settlement process
- Next article:SMS Invitation Format Wedding Invitation Group SMS
- Related articles
- Happy birthday to the elderly12021Happy birthday to the elderly
- Why can't I find the text message after downloading it?
- How long is Alipay overdue and how long can it be eliminated?
- Thanksgiving mom ~ the topic of the composition should be novel ~
- Did ABC cut the mortgage interest rate this year? China Agricultural Bank mortgage interest rate lowered.
- What should I do if the invitation letter for CCB's loan renewal is invalid?
- In the storm in Macau, Aaron was the mole. Who sent this message?
- Can I print short messages when they are moving?
- Does the arrears before the owner's mobile phone number affect me?
- Can I get it back if the phone bill is staggered?