Re: XML::LibXML search path for DTDs

Roger Pepitone <[email protected]> Mon, 8 Oct 2012 12:14:39 -0700 (PDT)
Newsgroups gmane.comp.lang.perl.xml
Message-ID <[email protected]>

Sorry:
System is Windows 7.
Absolute path contains the byte sequence "\x81\x5d".  In encoding codepage 932
http://msdn.microsoft.com/en-us/goglobal/cc305152.aspx

http://msdn.microsoft.com/en-us/goglobal/gg638593

it's unicode character 0x2010.

I can change it to use the utf-8 encoding of the uri, but only by processing the result of cwd()... something I was hoping to avoid by using URI::file->new_abs(...) in the first place.


________________________________
 From: Liam R E Quin <[email protected]>
To: Roger Pepitone <[email protected]> 
Cc: "[email protected]" <[email protected]> 
Sent: Monday, October 8, 2012 1:20 PM
Subject: Re: XML::LibXML search path for DTDs
 
On Mon, 2012-10-08 at 10:03 -0700, Roger Pepitone wrote:

> The absolute path of where my file is located contains some non-ascii characters.
> If I take URI::file->new_abs ("./${SVN}/dtds/type.dtd"), and put that in the catalog, then libxml2 complains about broken URIs.
> (File path contains \x81 \x59, which is CP932 for U2010. URI contains "%81]".)
> Is this a bug in URI::file or libxml2?


Try encoding it as %E2%80%90 maybe (the UTF-8 sequence).

Without seeing the full code and catalog and knowing the operating
environment (e.g. Microsoft Windows XP SP2?) it's hard to know.

"CP932 for U2010" is not well-formed URI-speak :-)

Liam



-- 
Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/
Pictures from old books: http://fromoldbooks.org/

_______________________________________________
Perl-XML mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs