Decode base64 string - php

前端 未结 3 492
一向
一向 2021-01-14 18:27

Is there any way to decode this string??

Actual string : 其他語言測試 - testing

base64 encode while sending on mail as subject as

\"=?iso-2022-jp?B?GyRCQj

3条回答
  •  孤街浪徒
    2021-01-14 19:27

    What you are looking at is MIME header encoding. It can be decoded by mb_decode_mimeheader(), and generated by mb_encode_mimeheader(). For example:

    
    
    其他語言測試 - testing
    

    (The call to mb_internal_encoding() is necessary here because the contents of the subject line can't be represented in the default internal encoding of ISO8859-1.)

提交回复
热议问题