note 42514 modified in function.html-entity-decode by aidan

From: Date: Tue, 14 Sep 2004 07:55:51 +0000
Subject: note 42514 modified in function.html-entity-decode by aidan
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-76653@lists.php.net to get a copy of this message
Example for string decoding to cyrillic Win-1251 text. String from HTML Form by Netscape 7.1: "&#1055;&#1088;&#1080;&#1074;&#1077;&#1090;" PHP code: <?php $m_message = html_entity_decode($_POST["m_message"], ENT_NOQUOTES, "win-1251"); ?> Now $m_message containes good text ;) --was-- Example for string decoding to cyrillic Win-1251 text. String from HTML Form by Netscape 7.1: "&#1055;&#1088;&#1080;&#1074;&#1077;&#1090;" PHP code: $m_message = html_entity_decode($_POST["m_message"], ENT_NOQUOTES, "win-1251"); Now $m_message containes good text ;) http://php.net/manual/en/function.html-entity-decode.php

« previous php.notes (#76653) next »