simplexml_load_file()
Posted: Fri Feb 08, 2008 4:47 pm
I am usein simplexml_load_file() to load a XML page, .... but it has latin characters and I get this message loading my page:
Warning: simplexml_load_file() [function.simplexml-load-file]: input conversion failed due to input error, bytes 0x90 0x43 0x54 0x52 in D:\xampp\htdocs\SAFT\saftpt1.php
My code for the PHP page is like this:
<?php
session_start();
$FileName = $_REQUEST["filepath"];
$AuditFile = simplexml_load_file("$FileName");
$AuditFileVersion = $AuditFile->Header->AuditFileVersion;
$CompanyID = $AuditFile->Header->CompanyID;
$TaxRegistrationNumber = $AuditFile->Header->TaxRegistrationNumber;
$TaxAccountingBasis = $AuditFile->Header->TaxAccountingBasis;
Howcan I read the XML file as UTF-8??
Thanks
Warning: simplexml_load_file() [function.simplexml-load-file]: input conversion failed due to input error, bytes 0x90 0x43 0x54 0x52 in D:\xampp\htdocs\SAFT\saftpt1.php
My code for the PHP page is like this:
<?php
session_start();
$FileName = $_REQUEST["filepath"];
$AuditFile = simplexml_load_file("$FileName");
$AuditFileVersion = $AuditFile->Header->AuditFileVersion;
$CompanyID = $AuditFile->Header->CompanyID;
$TaxRegistrationNumber = $AuditFile->Header->TaxRegistrationNumber;
$TaxAccountingBasis = $AuditFile->Header->TaxAccountingBasis;
Howcan I read the XML file as UTF-8??
Thanks