note 75911 deleted from function.xmlwriter-write-cdata by cmb
| From: | cmb@php.net | Date: | Sun, 20 Sep 2020 15:44:48 +0000 |
| Subject: | note 75911 deleted from function.xmlwriter-write-cdata by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-215163@lists.php.net to get a copy of this message | ||
Note Submitter: thesoupdragon at hotmail dot com
----
A rather strange effect with this.
UTF8 Mysql database
$xml->startElement('tablecolor2');
$xml->writeCData( $tablecolor2 );
$xml->endElement();
does not work !
but
$xml->startElement('tablecolor2');
$tablecolor2 = utf8_decode ( $val['pcolor2']);
$xml->writeCData( utf8_encode ($tablecolor2) );
$xml->endElement();
cannot explain this - but it may help someone