note 80539 added to function.html-entity-decode

From: Date: Mon, 21 Jan 2008 12:19:15 +0000
Subject: note 80539 added to function.html-entity-decode
Groups: php.notes 
Request: Send a blank email to php-notes+get-135286@lists.php.net to get a copy of this message
I had a problem getting the 'TM' trademark symbol to display correctly in an email subject line. Using html_entity_decode() with different charsets didn't work, but directly replacing the entity with it's ASCII equivalent did: $subject = str_replace('™', chr(153), $subject); ---- Server IP: 203.202.10.60 Probable Submitter: 124.168.97.22 ---- Manual Page -- http://www.php.net/manual/en/function.html-entity-decode.php Edit -- https://master.php.net/note/edit/80539 Del: integrated -- https://master.php.net/note/delete/80539/integrated Del: useless -- https://master.php.net/note/delete/80539/useless Del: bad code -- https://master.php.net/note/delete/80539/bad+code Del: spam -- https://master.php.net/note/delete/80539/spam Del: non-english -- https://master.php.net/note/delete/80539/non-english Del: in docs -- https://master.php.net/note/delete/80539/in+docs Del: other reasons-- https://master.php.net/note/delete/80539 Reject -- https://master.php.net/note/reject/80539 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#135286) next »