roundcube - Decode string into Readable format PHP -


decode following string proper human readable string using php

=?utf-8?q?=f0=9f=8e=81congratulation_dear,you_are=5fselected_for=5fonline?= =?utf-8?q?=f0=9f=8e=81cash=5floan_upto=f0=9f=8e=8110,000/-?= 

use php function imap_mime_header_decode() decode it.

for string posted in question returns this:

array (     [0] => stdclass object         (             [charset] => utf-8             [text] => 🎁congratulation dear,you are_selected for_online         )      [1] => stdclass object         (             [charset] => utf-8             [text] => 🎁cash_loan upto🎁10,000/-         )  ) 

the unprintable character (u+1f381) represents, according unicode.org, "wrapped present". this if displayed using font contains it.


Comments

Popular posts from this blog

python - Selenium remoteWebDriver (& SauceLabs) Firefox moseMoveTo action exception -

html - How to custom Bootstrap grid height? -

transpose - Maple isnt executing function but prints function term -