RE: [PHP] Invalid Characters, XML...

2003-08-04 Thread Ivo Pletikosic
I had a similar problem recently, but was not able to work with it in PHP tho. The array for that mapped characters to their entity turned out to be HUGE and it took forever to evaluate long XML files. I ended up killing several birds with one stone by wrapping the html-tidy utility (tidy.sourcefo

RE: [PHP] Invalid Characters, XML...

2003-08-04 Thread Luis Lebron
-", "°" => "°", "±" => "±", "-" => "–", """ => "“", """ => "”","..." => "…","'" => "‘","²" =>"²",&qu

Re: [PHP] Invalid Characters, XML...

2003-08-04 Thread David Otton
On Sun, 3 Aug 2003 21:51:53 -0400 (EDT), you wrote: >Im using PHP to write to XML files, but I am having some problems. A lot >of users are cutting and pasting content from text editors like word, >which uses odd quotation marks, dashes, etc. which PHP writes to the XML >file, and then the XML par