LISTSERV mailing list manager LISTSERV 16.0

Help for ZNG Archives


ZNG Archives

ZNG Archives


[email protected]


View:

Message:

[

First

|

Previous

|

Next

|

Last

]

By Topic:

[

First

|

Previous

|

Next

|

Last

]

By Author:

[

First

|

Previous

|

Next

|

Last

]

Font:

Proportional Font

LISTSERV Archives

LISTSERV Archives

ZNG Home

ZNG Home

ZNG  December 2004

ZNG December 2004

Subject:

Re: SRU using POST (Was: Adlib Base profile)

From:

Mike Taylor <[log in to unmask]>

Reply-To:

Z39.50 Next-Generation Initiative

Date:

Tue, 21 Dec 2004 12:57:25 GMT

Content-Type:

text/plain

Parts/Attachments:

Parts/Attachments

text/plain (103 lines)

> Date: Mon, 20 Dec 2004 22:37:02 +0000
> From: Dr Robert Sanderson <[log in to unmask]>
>
> > I've seen assertions that POST must be used wherever the form data
> > has non-ASCII characters. I gather this means
>
> I can demonstrate that to be incorrect.
> Just throw UTF-8 in a query at any SRU server.

Just because we can get away with it on some platforms certainly does
not mean that it is safe or reliable.

The most recent RFC describing URI syntax seems to be RFC 2396,
        http://rfc.net/rfc2396.html
but this is full of increasingly common weasel-words on the matter:

        2.1 URI and non-ASCII characters

        The relationship between URI and characters has been a
        source of confusion for characters that are not part
        of US-ASCII. To describe the relationship, it is
        useful to distinguish between a "character" (as a
        distinguishable semantic entity) and an "octet" (an
        8-bit byte). There are two mappings, one from URI
        characters to octets, and a second from octets to
        original characters:

        URI character sequence->octet sequence->original
        character sequence

        A URI is represented as a sequence of characters, not
        as a sequence of octets. That is because URI might be
        "transported" by means that are not through a computer
        network, e.g., printed on paper, read over the radio,
        etc.

        A URI scheme may define a mapping from URI characters
        to octets; whether this is done depends on the
        scheme. Commonly, within a delimited component of a
        URI, a sequence of characters may be used to represent
        a sequence of octets. For example, the character "a"
        represents the octet 97 (decimal), while the character
        sequence "%", "0", "a" represents the octet 10
        (decimal).

        There is a second translation for some resources: the
        sequence of octets defined by a component of the URI
        is subsequently used to represent a sequence of
        characters. A 'charset' defines this mapping.  There
        are many charsets in use in Internet protocols. For
        example, UTF-8 [UTF-8] defines a mapping from
        sequences of octets to sequences of characters in the
        repertoire of ISO 10646.

        In the simplest case, the original character sequence
        contains only characters that are defined in US-ASCII,
        and the two levels of mapping are simple and easily
        invertible: each 'original character' is represented
        as the octet for the US-ASCII code for it, which is,
        in turn, represented as either the US-ASCII character,
        or else the "%" escape sequence for that octet.

        For original character sequences that contain
        non-ASCII characters, however, the situation is more
        difficult. Internet protocols that transmit octet
        sequences intended to represent character sequences
        are expected to provide some way of identifying the
        charset used, if there might be more than one
        [RFC2277].  However, there is currently no provision
        within the generic URI syntax to accomplish this
        identification. An individual URI scheme may require a
        single charset, define a default charset, or provide a
        way to indicate the charset used.

        It is expected that a systematic treatment of
        character encoding within URI will be developed as a
        future modification of this specification.

I am not 100% confident what all this means, but so far as I can make
it out, the conclusion is that if you use a URI that includes
characters from outside the universal seven-bit repertoire, then there
is no general way to state what character encoding is in use, so that
(for example) the octed 0xe6 might represent the Danish "ae" ligature
character (in Latin-1) or part of a UTF-8 sequence.

By contrast, when data is POSTed, an accompanying Content-Type header
can explicitly state the character-set.

In conclusion, sending non-ASCII characters seems to be unambigous
when using POST but not when using GET.  Which is another reason to
allow SRU/POST, especially for Europeans.  (Of course, for we Brits
and you Yanks, it doesn't make any difference :-)

 _/|_    _______________________________________________________________
/o ) \/  Mike Taylor  <[log in to unmask]>  http://www.miketaylor.org.uk
)_v__/\  "It took me fifteen years to discover I had no talent for
         writing, but I couldn't give it up because by that time I
         was too famous" -- Robert Benchley.

--
Listen to free demos of soundtrack music for film, TV and radio
        http://www.pipedreaming.org.uk/soundtrack/

Top of Message | Previous Page | Permalink

Advanced Options


Options

Log In

Log In

Get Password

Get Password


Search Archives

Search Archives


Subscribe or Unsubscribe

Subscribe or Unsubscribe


Archives

July 2017
October 2016
July 2016
August 2014
February 2014
December 2013
November 2013
October 2013
February 2013
January 2013
October 2012
August 2012
April 2012
January 2012
October 2011
May 2011
April 2011
November 2010
October 2010
September 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
December 2009
October 2009
September 2009
August 2009
July 2009
May 2009
April 2009
March 2009
February 2009
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
January 2007
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006
December 2005
November 2005
October 2005
September 2005
August 2005
July 2005
June 2005
May 2005
April 2005
March 2005
February 2005
January 2005
December 2004
November 2004
October 2004
September 2004
August 2004
July 2004
June 2004
May 2004
April 2004
March 2004
February 2004
January 2004
December 2003
November 2003
October 2003
September 2003
August 2003
July 2003
June 2003
May 2003
April 2003
March 2003
February 2003
January 2003
December 2002
November 2002
October 2002
September 2002
August 2002
July 2002
June 2002
May 2002
April 2002
March 2002
February 2002
January 2002
December 2001
November 2001
October 2001
September 2001
August 2001
July 2001

ATOM RSS1 RSS2



LISTSERV.LOC.GOV

CataList Email List Search Powered by the LISTSERV Email List Manager