special char parsing in xml
Posted: Thu Sep 20, 2007 7:32 pm
I have a problem with the following
the function will give a parser error
Does anyone know how to resolve this problem
The XML gets posted to the page though a windows application what is using msxl parser what has no problems with these special characters
Made a slight change to the message as for some reason there were " in the string
it fails on ü or the english pound key, japenees characters etc
Code: Select all
$data = "<STRING>
<ORIGINAL>Add New Page</ORIGINAL>
<TRANSLATION>Neue Seite hinzufügen</TRANSLATION>
<TRANSLATION>新しいページを追加</TRANSLATION>
</STRING>";
if(!(xml_parse($xml_parser, $data, true))){
die(error_base_xml(20000,"could not parse the xml structure","Error on line " . xml_get_current_line_number($xml_parser)));
}Does anyone know how to resolve this problem
The XML gets posted to the page though a windows application what is using msxl parser what has no problems with these special characters
Made a slight change to the message as for some reason there were " in the string
it fails on ü or the english pound key, japenees characters etc