W3C home > Mailing lists > Public > xproc-dev@w3.org > July 2009

Re: Dealing with encodings and file: URIs

From: Norman Walsh <ndw@nwalsh.com>
Date: Wed, 29 Jul 2009 09:34:39 -0400
To: XProc Dev <xproc-dev@w3.org>
Message-ID: <m2eirzhats.fsf@nwalsh.com>
"Toman_Vojtech@emc.com" <Toman_Vojtech@emc.com> writes:
> Um. What kind of filesystem are you using that tells you the content
> type?

I run everything through java.net.URL for consistency since a p:data
URI can be any protocol.

Opening a connection to a file: URI reports a content type, presumably
based on what the OS reports. For a .txt file, it reports text/plain,
at least on my Mac.

                                        Be seeing you,

Norman Walsh <ndw@nwalsh.com> | Who knows whether the best of men be
http://nwalsh.com/            | known? or whether there be not more
                              | remarkable persons forgot, than any
                              | that stand remembered in the known
                              | account of time.--Sir Thomas Browne

Received on Wednesday, 29 July 2009 13:35:23 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:16:48 UTC