I have no control over the documents we're
receiving...

I wanted to do something at this level:-


my $libxml = XML::LibXML->new();

$libxml->encoding('ISO-8859-1');

Marty



--- "Thomas, Mark - BLS CTR" <[EMAIL PROTECTED]>
wrote:
> > We use XML::LibXML in our code, which is in turn
> used to 
> > parse the sent and received XML between our
> backend and front 
> > end webservers...
> > 
> > Since we upgraded to perl 5.8.5 from 5.6.1 all our
> processes 
> > which read the XML and then input that data into
> ORACLE  fail 
> > because the character encoding of the data coming
> back from 
> > XML::LibXML is now in utf8...
> 
> Is it declared in the document?
> 
> <?xml version='1.0' encoding='ISO-8859-1' ?> 
> 
> If it's not declared, the default is UTF-8. You may
> be able to add the
> declaration to the documents or through the API if
> you don't have control of
> the documents you're parsing.
> 
> Also, I noticed that there are encoding methods in
> XML::LibXML::Common, but
> I haven't used them.
> 
> - Mark.
> 
> 

Send instant messages to your online friends http://uk.messenger.yahoo.com 
_______________________________________________
Perl-Unix-Users mailing list
Perl-Unix-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to