Re: [libxml-devel] UTF-8 problem

2008-11-19 Thread Charlie Savage
David Helder wrote: Charlie, It turns out isn't a legal character reference in XML 1.0 (see section 4.1). It would be nice if libxml warned or raised an error, but that's more of a libxml issue, not a ruby-libxml issue. Ah good. Ok, will scratch that one off the list. Has the encoding sw

Re: [libxml-devel] UTF-8 problem

2008-11-19 Thread David Helder
Charlie, It turns out isn't a legal character reference in XML 1.0 (see section 4.1). It would be nice if libxml warned or raised an error, but that's more of a libxml issue, not a ruby-libxml issue. David On Nov 19, 2008, at 12:23 AM, Charlie Savage wrote: I see the same thing. Its ha

Re: [libxml-devel] UTF-8 problem

2008-11-19 Thread Charlie Savage
Hi David, I'm trying to input and output special characters, but I'm getting parse errors from libxml. Code snippet: node = LibXML::XML::Node.new 'node' node.content = '' doc = LibXML::XML::Document.new doc.encoding = 'UTF-8' doc.root = node xml

[libxml-devel] UTF-8 problem

2008-10-29 Thread David Helder
I'm trying to input and output special characters, but I'm getting parse errors from libxml. Code snippet: node = LibXML::XML::Node.new 'node' node.content = '' doc = LibXML::XML::Document.new doc.encoding = 'UTF-8' doc.root = node xml = doc.to_s