From fc155d5fe6a2d8f24b53f4dee10d54f3a5ea068b Mon Sep 17 00:00:00 2001 From: Mark Pilgrim Date: Sat, 26 Sep 2009 00:12:31 -0400 Subject: [PATCH] markup fiddling --- http-web-services.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/http-web-services.html b/http-web-services.html index fc6c2d2..c9e89d3 100755 --- a/http-web-services.html +++ b/http-web-services.html @@ -398,7 +398,7 @@ Writing /usr/local/lib/python3.1/dist-packages/httplib2-python3_0.5.0.egg-info
  • the encoding given in the charset parameter of the Content-Type HTTP header, or
  • the encoding given in the encoding attribute of the XML declaration within the document, or -
  • utf-8 +
  • UTF-8

    On the other hand, if the media type given in the Content-Type HTTP header is text/xml, text/xml-external-parsed-entity, or a subtype like text/AnythingAtAll+xml, then the encoding attribute of the XML declaration within the document is ignored completely, and the encoding is @@ -884,7 +884,7 @@ status=Test+update+from+Python+3' </user> </status>

      -
    1. Remember, the data returned by httplib2 is always bytes, not a string. To convert it to a string, you need to decode it using the proper character encoding. Identi.ca’s API always returns results in UTF-8, so that part is easy. +
    2. Remember, the data returned by httplib2 is always bytes, not a string. To convert it to a string, you need to decode it using the proper character encoding. Identi.ca’s API always returns results in UTF-8, so that part is easy.
    3. There’s the text of the status message we just published.
    4. There’s the unique identifier for the new status message. Identi.ca uses this to construct a URL for viewing the message on the web.