|
|
Choosing A Webhost: |
Re: Accented characters making XML::Parse choke?: msg#00038tv.xmltv.devel
On 10 Sep 2002, Joe Drew wrote: >>From an e-mail Issac Richards sent to mythtv-dev (and forwarded to me): > >"error is because the perl XML parser no longer seems to return >everything in UTF-8 like it used to, instead converting things >automatically to ISO-9660-1. Aargh! I wrote the code based on the assurance given in the documentation that everything is always normalized to UTF-8. There is a value for 'encoding' returned from read_data(), but my documenation says 'this will always be UTF-8'. That might have to change. >Seems it might be a bug in perl 5.8, or maybe in one of the libxml >perl modules now in Debian. It sounds like not a bug but new behaviour. Not a change I welcome (my attitude is UTF-8 or ASCII everything, and the sooner Latin-1 dies the better), but I'll have to make the code work with it. All I need to know is how to determine what encoding the XML parser has chosen. XML::Twig doesn't provide an interface for that, its docs just say that data is always UTF-8. Probably XML::Twig's docs also date from the time when XML parsing didn't try to keep the input encoding. -- Ed Avis <ed@xxxxxxxxxxx>
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Accented characters making XML::Parse choke?, Joe Drew |
|---|---|
| Next by Date: | Re: Accented characters making XML::Parse choke?, Ed Avis |
| Previous by Thread: | Re: Accented characters making XML::Parse choke?, Joe Drew |
| Next by Thread: | Re: Accented characters making XML::Parse choke?, Ed Avis |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |