PHP 8.5.0 Alpha 4 available for testing

Voting

: six minus one?
(Example: nine)

The Note You're Voting On

onPHP5.com
17 years ago
It does not say in the docs, but SimpleXML will convert all text into UTF-8, if the source XML declaration has another encoding. Eg, if the source has the following XML decl:

<?xml version="1.0" encoding="windows-1251" ?>

all the text in the resulting SimpleXMLElement will be in UTF-8 automatically.

<< Back to user notes page

To Top