note 115831 deleted from function.htmlspecialchars by cmb

From: Date: Sun, 27 Oct 2019 09:18:18 +0000
Subject: note 115831 deleted from function.htmlspecialchars by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-212852@lists.php.net to get a copy of this message
Note Submitter: sascham78 at php dot net ---- If you are using UTF-8 encoding with htmlspecialchars() you may experience blank values with certain language-specific characters i.e. spanish or portuguese "âãá". So instead of using <?php $utf8encoded= htmlspecialchars($string, ENT_QUOTES, 'UTF-8'); ?> try <?php $utf8encoded= utf8_encode(htmlspecialchars($string, ENT_QUOTES)); ?>

« previous php.notes (#212852) next »