using nusoap, getting these chars:  error??

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
p0wn
Forum Newbie
Posts: 1
Joined: Wed Dec 13, 2006 9:13 am

using nusoap, getting these chars:  error??

Post by p0wn »

I keep getting this error, and i'm not sure why
XML Parsing Error: not well-formed
Line Number 1, Column 2:
<?xml version="1.0" encoding="ISO-8859-1"?>

I don't think it has to do with nusoap as much as for some reason i'm saving the php file wrong or something. Has anyone had these problems before?
Thanks
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

I would guess that it is a UTF-8 BOM (Byte-order-marker).
User avatar
Ollie Saunders
DevNet Master
Posts: 3179
Joined: Tue May 24, 2005 6:01 pm
Location: UK

Post by Ollie Saunders »

I second feyd's diagnosis. Look for an option to turn of BOMs in your XML editor make sure you are in fact saving as ISO-8859-1. That should stop the problem reoccuring but no necessarily fix files that already have a BOM in them. If that is the case get a primitive text editor out such as Windows notepad that doesn't recognise the BOMs and manually delete the characters -- hex editor is good too.
Post Reply