PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » XML » XML_Tree » Bug #1822

Need charset parameter

Details

Request #1822Need charset parameter
Submitted2004-07-08 07:41 UTC
Frommail at young dot org dot ua
Assigneddavey
StatusClosed
PackageXML_Tree
PHP Version4.3.6
OSFreeBSD
Roadmaps(Not assigned)

Comments

[2004-07-08 07:41 UTC] mail at young dot org dot ua

Description:
------------
I have some notes to your function

function &getTreeFromFile ()
{
$this->folding = false;
$this->XML_Parser(null, 'event');
$err = $this->setInputFile($this->filename);
if (PEAR::isError($err)) {
return $err;
}

Which located in file Tree.php.

When parameter null passed into XML_Parser, it create
xml_parser_create with omitted optional parameter encoding and using default value ISO-8859-1.
Thats why it is imposible to use UTF-8 encoding in XML-files during use your package.
Please, can you add feature which allow specify charset for XML-file?