note 125510 added to function.quoted-printable-decode

From: Date: Thu, 12 Nov 2020 14:12:21 +0000
Subject: note 125510 added to function.quoted-printable-decode
Groups: php.notes 
Request: Send a blank email to php-notes+get-215844@lists.php.net to get a copy of this message
I thought quoted_printable_decode wasn't working. I had different results while trying to make it simple for posting online for help figuring it out. I would get an empty string that strlen($path) would still tell me that the string was over 2K in characters. Then there were HTML entities that were converted to the black diamond characters. So I came to the manual (this page) and wasted my time reading through the notes on a DECODE page about all the people posting how to ENCODE. If you're also having this ridiculous issue trying to decode email parts it turns out you need to use utf8_encode with quoted_printable_decode: <?php echo utf8_encode(quoted_printable_decode($part)); ?> https://www.php.net/utf8_encode If this fixes your problem up-vote to spare others from having to waste time combing through all the encode post nonsense. ---- Server IP: 45.112.84.4 Probable Submitter: 185.85.3.174 (proxied: 193.27.12.132) ---- Manual Page -- http://php.net/manual/en/function.quoted-printable-decode.php Edit -- https://master.php.net/note/edit/125510 Del: integrated -- https://master.php.net/note/delete/125510/integrated Del: useless -- https://master.php.net/note/delete/125510/useless Del: bad code -- https://master.php.net/note/delete/125510/bad+code Del: spam -- https://master.php.net/note/delete/125510/spam Del: non-english -- https://master.php.net/note/delete/125510/non-english Del: in docs -- https://master.php.net/note/delete/125510/in+docs Del: other reasons-- https://master.php.net/note/delete/125510 Reject -- https://master.php.net/note/reject/125510 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#215844) next »